* MF-739 - Add ID to the User entity
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Resolve remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Move idp to project root
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use RetrieveByEmail func and UUIDProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm idp.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename UserInfo into ViewUser
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix ViewUser naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix db name in influxdb
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Align db name and namespace from .env with default values in mongodb and cassandra also
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Rename databases' names to mainflux
Signed-off-by: Ivan Milošević <iva@blokovi.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Use bulk sdk functions for generating Things and Channels
Add prefix option
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Update readme
Remove dead code
Rename variable
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add ListTwins test
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Remove monotonic time from twins, definitions and attributes creation and update
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Separate twins and states endpoint tests in two files
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add state generation helper funcs to state endpoint tests
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add createStateResponse() to states test
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add states test cases
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Simplify RetrieveAll twins and states methods
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add service.go to mocks
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Rename mocks.NewService to mocks.New
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add error checking to endpoint state tests
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Fix method comment
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add json response decode success check
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Remove created and updated fields from twin and state res
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Remove definition fields from twin req and res
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add Create funcs to mocks package
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add service save state tests
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add service list states test
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add MQTT forwarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup forwarder code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use MQTT Publisher in MQTT forwarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup MQTT messaging
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add Paho client timeout errors
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Simplify MQTT fowarder
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix naming in main method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use interface and struct instead of function
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use Mainflux errors package
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename `tkn` to `token`
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use "/" instead of "." as topic separator
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use async MQTT Publisher
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix timeout errors messages
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add connect token check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename package alias
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* NOISSUE - Fix default nats publisher subject
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use created timestamp inn transformer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use created timestamp in transformer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* rename topic -> subject for nats
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix subscriber topic
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use int64 nanoseconds Created timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comment to created protobuf field
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm gogo from scripts/ci.sh
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return publisher in NewPublisher
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Refactor messaging
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename SubscribeHandler to MessageHandler
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove `Auth` event logs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update message pubsub APi
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix topics handling
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update CoAP adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Twins service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update LoRa adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update OPC UA adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove broker package
Package `broker` is conceptually renamed to package `nats`.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update makefile
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add comment explanation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix MQTT adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Move NATS pub/sub implementation to pubsub pkg
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove an empty line in main methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Move messaging-related code to messaging package
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Twins mocks
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Change Occurred back to Created
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tranformer test
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix message proto commands
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Replace string literal with constant
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove alias from main method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Change messaging pubsub alias
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename occured to created
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Handle NATS connection in the NATS PubSub
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename n to pub/pubSub
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use Events interface in MQTT adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Switch to the new version of mProxy
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update vendor
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update mProxy version
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>