Nick Neisen
23dff53a08
MF-787 - Add tags to user, thing, and channel spans ( #869 )
...
* Add span tags to tracing functions
Signed-off-by: nwneisen <nwneisen@gmail.com>
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add span tags to database funcions
Signed-off-by: nwneisen <nwneisen@gmail.com>
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add database interface for things tags
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add channels database interface for tags
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add database interface for users tags
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Fix borken tests due to database interface
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Update database interface naming
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Adjust tests for name changes
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Return previous db variable name
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Add ctx after rebase
Signed-off-by: nwneisen <nwneisen@gmail.com>
2019-10-07 13:32:09 +02:00
Aleksandar Novaković
19f8922a9e
Update docker-compose version for addons ( #874 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-10-02 11:57:12 +02:00
Mirko Teodorovic
ecc15b64b6
MF-859 - Channels metadata search ( #867 )
...
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* run.sh
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pause
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retype from string to []byte
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add wait logic for gnatsd
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to channels
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix waiting for gnatsd
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix waiting for gnatsd
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix waiting for gnatsd
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* changes to wait gnatsd logic
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* changes to wait gnatsd logic
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* testing query
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix query
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix query
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix merge problem
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* Update requests.go
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* Delete pwdrecovery.go
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix merge problem
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix merge problem
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small change in comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused struct
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-10-01 14:12:52 +02:00
Mirko Teodorovic
92a640f6fc
MF-858 Users metadata ( #861 )
...
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* run.sh
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pause
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retype from string to []byte
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add wait logic for gnatsd
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert run.sh for now as gnats availability check is solved in other PR
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata database/sql handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix commit issues
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small change to errors handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor comment change
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-28 13:15:41 +02:00
Dušan Borovčanin
873ef4c96f
NOISSUE - Simplify MQTT benchmarking tool ( #852 )
...
* Fix user creation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract client creation to separate method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove message generating in separate goroutine
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove runSub and runPub methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Refactor benchmark code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update client message handling
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix microseconds typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Simplify client
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Don't take zero-messages clients int count
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix token timeout condition
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add timeout for publisher
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Paho lib version
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Temporary drop SenML and subscribe support
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Calculate payload size
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove templates
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-09-25 19:02:29 +02:00
Ivan Milošević
5e3bb270a3
NOISSUE - Upgrade Go version to 1.13 in container images ( #868 )
...
* Change go version to 1.13 in docker images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* update go version on CI
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix and add debug code in ci.sh
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove other Go version from PATH on semaphoreci
Add new go installation to PATH
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Create dir for golang 1.13
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove debug code
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add check for current go version before upgrade in ci script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-09-23 21:43:21 +02:00
Parham Alvani
c8cb2655c0
MF-820 - Fetch messages for a particular device ( #843 )
...
* feat: Add Support for Publisher Query in Postgres
Signed-off-by: Parham Alvani <parham.alvani@gmail.com>
* chore: Remove Redundant Case
Signed-off-by: Parham Alvani <parham.alvani@gmail.com>
* chore: Add Test for Postgres Query
Signed-off-by: Parham Alvani <parham.alvani@gmail.com>
2019-09-21 00:20:09 +02:00
Aleksandar Novaković
b83439fcc2
Update gorilla websocket version ( #865 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-09-18 18:25:18 +02:00
Aleksandar Novaković
08105205e1
NOISSUE - Update aedes version and fix Dockerfile ( #863 )
...
* Update MQTT adapter and add message TTL
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Fix clean command
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-09-17 20:25:38 +02:00
Mirko Teodorovic
d20dfa84bc
NOISSUE - Search by metadata ( #849 )
...
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata search
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* metadata test case
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add docs and update swagger
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add test for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add test for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove commented out section
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small change to test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove debug printf
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* and => and/or
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix mixed func params
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* metadata will be added to channels later
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix return type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typings
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typings
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add migration
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove var
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* respecting the order of migrations
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-17 15:46:24 +02:00
Ivan Milošević
a6cf76709d
MF-846 - Install python in docker build for aedes mqtt image ( #860 )
...
* Multi-stage docker build for aedes mqtt image
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add copyright header
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-09-16 18:25:34 +02:00
Drasko DRASKOVIC
5ef6aa84de
NOISSUE - Clean NginX files, move .gitignores to dirs ( #853 )
...
* Remove nginx entrypoint trash, move .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add node_modules to Aedes .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Move docker .gitignore to nginx
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-16 11:47:34 +02:00
Drasko DRASKOVIC
3b19292966
NOISSUE - Add docker-compose for MQTT cluster ( #841 )
...
* Add MQTT cluster configs
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Bump worker_connections value in nginx.conf
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Revert config.toml
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix cluster
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Move non-ssl server into the same directive
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix cluster
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Remove unnecessary comments
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Organize docker-compose and nginx conf files
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Correct nginx.conf for mTLS and aux changes
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix NginX conf trailing slash in proxy_pass
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix path for MQTT
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix minorstuff in gitignore and comments
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-12 16:55:24 +02:00
Aleksandar Novaković
4870119270
Add debug logs to the WS adapter ( #848 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-09-11 15:34:04 +02:00
Mirko Teodorovic
97327ab05f
NOISSUE - Add measuring time from pub to sub ( #839 )
...
* refactor code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert some names
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move meausuring time start
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add pub-to-sub delivery time measure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve sync between pub and sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add random payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes for config.toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add random payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove printfs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logging
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add payload
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor sync
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor sync
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor results
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change sync and result collecting for sub
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-06 14:59:35 +02:00
Parham Alvani
115d94bd1b
fix: Correct 404 and Content-Type Issues in MQTT Version Endpoint ( #837 )
...
Signed-off-by: Parham Alvani <parham.alvani@gmail.com>
2019-09-05 15:10:18 +02:00
Mirko Teodorovic
640dfb7e19
NOISSUE - update mqtt prov tool and some refactor ( #831 )
...
* refactor code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add some comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert some names
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move meausuring time start
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes to .gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-05 13:39:58 +02:00
Dušan Borovčanin
e17a3de1d0
NOISSUE - Use Thing ID to update certs data ( #827 )
...
* Use ThingID to update certs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix logging typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update API tests and service mock
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-09-03 13:54:56 +02:00
Drasko DRASKOVIC
ec4b46b669
NOISSUE - Improve VerneMQ plugin code, add configurable gRPC pool size ( #836 )
...
* Enable gRPC support
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add poolboy process pool
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add Verne docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Improve code, add settings for pool size
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-03 01:05:36 +02:00
Drasko DRASKOVIC
38d85ae03b
NOISSUE - Use gRPC for VerneMQ ( #835 )
...
* Enable gRPC support
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add poolboy process pool
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add Verne docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Clean the code in genservers
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-02 23:22:46 +02:00
Drasko DRASKOVIC
655f421ca9
NOISSUE - Fix proto files in VerneMQ ( #834 )
...
* Add socket pool and fix pattern matching
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix hackney req
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Change docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Correct protobuf and add MQTT loback ignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Bring back docker-compose
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-02 21:20:18 +02:00
Drasko DRASKOVIC
9ccc37c4b1
NOISSUE - Fix hackney HTTP request ( #833 )
...
* Add socket pool and fix pattern matching
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix hackney req
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-02 18:11:58 +02:00
Drasko DRASKOVIC
a8836d67e0
Add socket pool and fix pattern matching ( #830 )
...
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-01 21:53:04 +02:00
Ivan Milošević
2d1347eee3
Switch secure of WS connection according to secure of http connection of UI ( #829 )
...
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-08-30 16:23:28 +02:00
Alexander Obukhov
1a4844cee1
NOISSUE - Use current hostname instead of localhost for a WebSocket connection in the UI ( #826 )
...
Signed-off-by: Alexander Obukhov <dev@sprql.space>
2019-08-30 14:21:29 +02:00
Drasko DRASKOVIC
f090573567
NOISSUE - Improve MQTT benchmarking tools ( #828 )
...
* Refactor mqtt-bench
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Refactor mqtt-bench and provision tools
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Improve README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Remove provision generated toml file
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Update README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Replace `tcp` with `tcps` for mtls
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-08-30 14:09:12 +02:00
Mirko Teodorovic
bfd12304ac
NOISSUE - update mqtt benchmark ( #824 )
...
* update gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix dates for cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* print to stdout for creating result file from script
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add script for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add time measeuring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate test in one file each
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move config.toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add connection check, and prevent blocking of publisher when connection fails
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-27 14:21:39 +02:00
Dušan Borovčanin
e7891ec6ab
Add encryption key to env vars table ( #823 )
...
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-08-15 16:26:31 +02:00
Dušan Borovčanin
5c924bd5a3
NOISSUE - Add version endpoint to MQTT adapter ( #816 )
...
* Add version endpoint to MQTT adapter
Expose CoAP version endpoint in the default docker-compose.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use /tcp insted of implicit protocol name
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-08-14 01:07:11 +02:00
Mirko Teodorovic
19834dfc51
MF-295 add mqtt benchmark tool ( #817 )
...
* adding mqtt benchmark tool
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mqtt benchmark tool - vendoring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add mtls support
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, adding ssl cert gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add readme for provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some printing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add test configs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some dead code, and sort comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cobra and viper
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove statistic lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change type visibility
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove empty line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update deps
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-13 12:56:31 +02:00
Mirko Teodorovic
9a78b1111f
update mqtts commands ( #815 )
...
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-05 11:43:05 +02:00
Mirko Teodorovic
9c52c3816a
Fix typo ( #814 )
...
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-02 15:22:28 +02:00
Dušan Borovčanin
f03949a003
NOISSUE - Support encrypted bootstrap ( #796 )
...
* Fix API docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Provide secured bootstrapping
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix test and mock methods signatures
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add encrypte bootstrap test
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove duplicated docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use secret key to encrypt bootstrap request
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use secret key for secure bootstrapping
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Move encryption to ConfigReader
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove ConfigReader from Service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add reader tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update API docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Unset key env variable
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add endpoint test for secure bootstrap
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-08-02 14:35:31 +02:00
Aleksandar Novaković
68e8eda92d
Add config to writers docs ( #812 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-08-01 13:13:24 +02:00
Drasko DRASKOVIC
c751d0e656
NOISSUE - Add VerneMQ support ( #809 )
...
* Add VerneMQ
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix Aedes build
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Update VerneMQ README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Remove unused gRPC client proto files
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add topic rewrite for CT
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix CT links on NATS SUB
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix NATS PUB/SUB with spawned process
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix typos
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-08-01 12:40:49 +02:00
Aleksandar Novaković
55d03ecdda
NOISSUE - Add content type as part of MQTT subscription topic ( #810 )
...
* Add content type to MQTT sub topic
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Remove default content type value
Remove default content type value (SenML JSON) and replace it with
an empty string.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update docs in accordance with changes
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-29 17:42:04 +02:00
Nikola Marčetić
2996193a50
Updated Readme ( #808 )
...
* Updated Readme
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
* Fix typo
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
* Fix grammar
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
2019-07-25 19:20:11 +02:00
Ivan Milošević
6d2aa71ccc
NOISSUE - Add rungw command to Makefile ( #805 )
...
* Add `make rungw` command to run mainflux without jaeger
Add name to jaeger container
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add explanatory comment in Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add new line on end file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-07-25 17:24:26 +02:00
Ivan Milošević
54823bed25
NOISSUE - Fix building UI docker image for arm ( #806 )
...
* Add entrypoint in arm Dockerfile
Switch from ash to dash in entrypoint script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add new line on file end
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-07-25 17:15:06 +02:00
Aleksandar Novaković
649986b19f
MF-757 - Add support for explicit content type ( #771 )
...
* Add format to raw message and content type mapping
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add format as part of content type header
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add format to content-type header for WS adapter
Add format as part of content-type and add support for
content-type header and query parameter.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add support for format and content-type in MQTT adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add format and content-type to CoAP adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add documentation for content type and format
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add comments to MQTT code
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Fix SenML JSON CoAP code type
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Remove format from the adapters
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Remove format from the docs
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Remove format field from MQTT adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update content type to be optional
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add support for CBOR content type in the normalizer
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update docs for MQTT content type
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-25 02:22:28 +02:00
Nikola Marčetić
99ced38229
Updated Readme ( #807 )
...
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
2019-07-24 15:02:21 +02:00
Mirko Teodorovic
8efcaee350
NOISSUE - make correct reference to MF_UI_PORT ( #804 )
...
* make correct reference to MF_UI_PORT
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove echo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-07-24 12:44:39 +02:00
Aleksandar Novaković
a3de6953f8
Add support for optional Jaeger ( #801 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-23 14:31:02 +02:00
Dušan Borovčanin
748b7c1ee8
Fix CoAP adapter subtopics ( #797 )
...
Remove `messages` part from the subtopics.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-07-22 13:24:50 +02:00
Nikola Marčetić
6af65ea159
Added changelog for 0.9.0 release ( #799 )
...
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
2019-07-19 17:56:23 +02:00
Aleksandar Novaković
b95bb82e0b
Fix users service to work in offline mode ( #795 )
...
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-19 12:28:45 +02:00
Ivan Milošević
8bda799ef9
Create and push docker manifest for new release from Makefile ( #794 )
...
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-07-18 17:31:37 +02:00
Aleksandar Novaković
61f1c2e379
MF-399 - Add open tracing support ( #782 )
...
* Add open tracing dependencies
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add open tracing to users service
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add open tracing to the things service
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add open tracing to the http adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add open tracing to the ws adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add open tracing to the CoAP adapter
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update LoRa adapter in accordance with changes
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update SDK tests in accordance with changes
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update bootstrap service in accordance with changes
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update reader services with accordance with changes
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update .env and docker-compose file
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add jaeger and timeout env vars
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Fix broken test for can access by id endpoint
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update deps with proto empty package
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-18 15:01:09 +02:00
Ivan Milošević
1ad14e7fd3
fix mainflux_id parameter in bootstrap swagger ( #789 )
...
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-07-16 16:21:37 +02:00
Aleksandar Novaković
a6a8648e4f
MF-783 - Allow access checking by a thing ID ( #784 )
...
* Add can access by things ID endpoint to things service
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add new auth endpoint to the swagger docs
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add test for the new endpoint of the things service
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2019-07-15 18:28:15 +02:00