b1ackd0t
4401e79a0d
NOISSUE - Add Subscriber Config ( #1896 )
...
* Replace Nats with Nats Jestream For PubSub
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Stream Description
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix connection leak in NATS publisher
The publisher struct in pkg/messaging/nats/publisher.go was modified to include a new `conn` field of type `*broker.Conn`. This change was made to fix a connection leak issue in the NATS publisher.
The `NewPublisher` function was updated to assign the `conn` parameter to the new `conn` field in the publisher struct.
Additionally, the `Close` method in the publisher struct was modified to close the `conn` connection.
This commit fixes the connection leak issue in the NATS publisher and ensures that connections are properly closed.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
* Setup subscriber config to contain handler topic and ID
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add delivery policy
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Avoid duplicate messages
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename to DeliveryPolicy
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Not check for data result set when we are returning subset of messages
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* For unsubscribe remove config
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
* Fix comment
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
2023-10-23 15:27:15 +02:00
b1ackd0t
a008440dcc
NOISSUE - MQTT To Publish Payload Only ( #1903 )
...
* Publish only message payload
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
* Use concatenation instead of sprintf as documented
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
* Fix tests
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
---------
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2023-09-05 15:01:24 +02:00
Washington Kigani Kamadi
e2992cbede
NOISSUE - Change import name aliases ( #1868 )
...
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Change import aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Fix error
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import alias
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix import
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add linter to CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix merge issues
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Add gofumpt
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove multiple gofupmt in CI
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Remove unnecessary changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
* Fix CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
---------
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
2023-08-11 11:30:25 +02:00
Dušan Borovčanin
723dc52c62
Fix MQTT Forwarder topic ( #1827 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-06-23 00:06:56 +02:00
Dušan Borovčanin
55e09c1921
MF-1506 - Group-based Access Control ( #1716 )
...
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update Add and Delete Policies (#1792 )
* Remove Policy Action Ranks
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Rebase Issues
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix CI Test Errors
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Adding Check on Subject For Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Check Client Exists
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check When Sharing Clients
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Only Add User to Group When Sharing Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove clientType
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Minor Fix on ShareClient and Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Clean Up Things Authorization
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests on RetrieveAll
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Test ShareThing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Merge Conflicts
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove Adding Policies. Only Use Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Check If Subject is same as Object
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Move Back To Union As Sometimes Policy is Empty and Fails to Evaluate on Ownership
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Entity Type For Failing Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix BUG in policy evaluation
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Comments Regarding checkAdmin
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Combine Authorize For Things and Users
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests On Rebase
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Error on Things SVC `unsupported protocol scheme`
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Bug on Things Authorization Cache (#1810 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use Password instead of username in MQTT handler
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Simplify MQTT authorization
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix MQTT tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add More Functions to SDK (#1811 )
* Add More Functions to SDK
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to GoDoc
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Update Unassign Interface
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Pass Subject as ID and Not Token on List Channels By Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Bootstrap Errors For Element Check
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add empty line Before Return
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Reorder URLS in things mux
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Listing Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Share Thing
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Examples to CLI Docs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Identity To Update Another User
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Identify an Update Policies on Things
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Update Things Policies
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix GoDocs on Disconnect
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Change Authorize To Use AccessRequest
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* For Evaluate Policy Use AccessRequest (#1814 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add SDK Tests (#1812 )
* Add Things Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Channel Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Certs Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Consumer Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enrich Group Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Health
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests For Tokens
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename SDK for Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Policies Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Linter
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Make Variable Defination Inline
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Make Cache Key Duration Configurable (#1815 )
* Make Cache Key Duration Configurable
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename ENV Var
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Update GoDocs (#1816 )
* Add GoDocs
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Missing GoDoc Files
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Enable godot
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add License Information
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add Call Home Client to Mainflux services (#1751 )
* Move Things and Users to Clients
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
* collect and send data package
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create telemetry migrations
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add telemetry endpoints
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add transport
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing server
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to adapters
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add last seen
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename logger
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove homing client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use unmerged repo
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use renamed module
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* edit documentation
Signed-off-by: SammyOina <sammyoina@gmail.com>
* align table
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use alias for call home client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home pkg
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix modules
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mf build version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore default
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home for users and things
Signed-off-by: SammyOina <sammyoina@gmail.com>
* enable opting on call home
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove full stops
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update callhome client
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add call home to all services
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore sdk tests
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove unnecessary changes
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore health_test.go
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Co-authored-by: Sammy Kerata Oina <44265300+SammyOina@users.noreply.github.com>
2023-06-14 12:40:37 +02:00
Sammy Kerata Oina
1a77d384bb
MF-786 - Tracing over NATS using opentracing standard ( #1739 )
...
* send and receive span context
Signed-off-by: SammyOina <sammyoina@gmail.com>
* initilize tracer in cmd
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add span context to mainflux message
Signed-off-by: SammyOina <sammyoina@gmail.com>
* propagate span context from adapters
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix failing build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix failing build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix linting error
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing middleware to coap service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing middleware to http service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing middleware to mqtt service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing middleware to broker
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing middleware to ws service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing to services
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix naming convention of functions
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix failing build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove tracer from mqtt svc
Signed-off-by: SammyOina <sammyoina@gmail.com>
* format code and removed unused code
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename tracing files
Signed-off-by: SammyOina <sammyoina@gmail.com>
* - rename nats tracer
- intialize tracing at the broker
Signed-off-by: SammyOina <sammyoina@gmail.com>
* check for nil spans
Signed-off-by: SammyOina <sammyoina@gmail.com>
* propagate spans to consumers writers
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove unused variable
Signed-off-by: SammyOina <sammyoina@gmail.com>
* propagate traces to notifiers
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove comments
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove span from message
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove span from message
Signed-off-by: SammyOina <sammyoina@gmail.com>
* trace over rabbitmq and mqtt
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix failing build
Signed-off-by: SammyOina <sammyoina@gmail.com>
* trace subscribe and unsuscribe ops
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add create span method
Signed-off-by: SammyOina <sammyoina@gmail.com>
* pass context from main
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add span tags
Signed-off-by: SammyOina <sammyoina@gmail.com>
* restore coap transport.go
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add context to ops
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add cancel to tracing
Signed-off-by: SammyOina <sammyoina@gmail.com>
* refactor handler
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add comments to exported functions
return interfaces
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove channel span tag
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add pub sub tracer
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add pub sub tracer
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove prefixes from operations
Signed-off-by: SammyOina <sammyoina@gmail.com>
* perpetuate context from root
remove protocol from span tag
Signed-off-by: SammyOina <sammyoina@gmail.com>
* reorder functions
Signed-off-by: SammyOina <sammyoina@gmail.com>
* create span function
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add suffixes
add pubsub tags
Signed-off-by: SammyOina <sammyoina@gmail.com>
* move from if to switch
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add jaeger url to docker compose
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove snake case variables
add comments to exported functions
Signed-off-by: SammyOina <sammyoina@gmail.com>
* check for empty sub topics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove tracing on consumers
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove duplicate tracers
Signed-off-by: SammyOina <sammyoina@gmail.com>
* clean up unused variables
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove empty lines
Signed-off-by: SammyOina <sammyoina@gmail.com>
* write better comments
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update readme jaeger url
Signed-off-by: SammyOina <sammyoina@gmail.com>
* initialize tracing midlleware on main
update readme jaeger urls
Signed-off-by: SammyOina <sammyoina@gmail.com>
* reorder arguments for tracing middleware
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add context to subscribe
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-04-20 21:39:33 +02:00
b1ackd0t
ada5813f47
MF-1455 - Update Versions of Protobuf ( #1704 )
...
* initial commit
* add protoc-gen-gofast
* update generated files
* fix linting
* fix consumers error on message conversion
* fix copying values on transformers
* initial commit
* initial commit
* add protoc-gen-gofast
* update generated files
* fix linting
* fix consumers error on message conversion
* fix copying values on transformers
* embedded for forward compatible.
* remove gogo
* embedded for forward compatible.
* update protoc compiler
* fix linting
* remove hex comment
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
2023-02-02 18:28:32 +01:00
b1ackd0t
c8f841f8f3
MF-1588 - Update Subscriber interface ( #1598 )
...
* Initial commit
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update subscriber interface
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* check subscription map
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Check topic id after topic
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* reword description
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Setup empty queue
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change mqtt implementation
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Switch statements
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Simplify
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change mqtt subscriber
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Protect subscription map
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix subscription
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Set client id
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change delete method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-05-03 18:02:19 +02:00
Dušan Borovčanin
ea3a891c91
MF-1190 - Add pkg for library packages ( #1191 )
...
* Move messaging to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move errors to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Transformers to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move SDK to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Transformers from root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix make proto
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add copyrights header
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Auth client to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies and vendors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-06-03 15:16:19 +02:00
Dušan Borovčanin
b8be18129c
MF-1079 - Add MQTT forwarder ( #1164 )
...
* 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>
2020-05-07 09:34:09 +02:00