* Add InfluxDB reader
Summary:
- Add basic reader features
- Update Makefile
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Raise test coverage
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update README.md and docker composition
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix docker-compose.yml
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove exposed ports
Ports are already exposed by mapping, so no need to explicity expose them.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add compiled .proto files
Signed-off-by: Sava Radoš <sava.rados@mainflux.com>
* Remove proto as prerequisite for build services target
Signed-off-by: Sava Radoš <sava.rados@mainflux.com>
* Rename Payload field to Metadata
Rename Payload field of Thing to Metadata.
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Revert JSON payload rename in docs
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add mongodb reader service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add tests for mongodb reader service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add documentation for mongodb reader service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix test function name
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update comment in docker-compose for mongodb-reader service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix logger message in http service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Inline query and error handling in cassandra writer
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix comments and import statement in writer interface
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add reader common interface and shared HTTP API
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add Cassandra reader implementation
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add tests for cassandra reader
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add swagger doc and readme for readers
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update make file
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add docker-compose configuration for cassandra reader
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add readme file to cassandra reader
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Improved getting started docs
Better explaination of how to send messages to a channel using websockets.
Added a basic nodejs example
Signed-off-by: Marco Ferragina <marco.ferragina@gmail.com>
* Added leading slash
Signed-off-by: Marco Ferragina <marco.ferragina@gmail.com>
* added some comments to example code in docs
Signed-off-by: Marco Ferragina <marco.ferragina@gmail.com>
* MF-216 - Integrate Bashflux into monorepo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename clients -> things
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix FormatResLog
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Initialize Channels commands in channels.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv bashflux to cmd/ repertory
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv API commands files to bashflux repertory
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Initialize Users commands in users.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Initialize Version command in version.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Initialize Messages command in messages.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm bashflux .gitignore and mv commands to root .gitignore
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename API commands vars
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix certificates paths
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm test logs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove get channels cmd without arguments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix connect and disconnect commands
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix messages endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm useless comments and dead code
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use contentTypeSenml var
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename cmdCobra -> cmd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm else statments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename SetServerAddr function vars
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename conf parameters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename main with proper name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Update channel comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix README
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm .DS_Store from .gitignore
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename hhtp_client.go -> http.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm DeleteAllChannels and DeleteAllThings funcs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix BF users usage log
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve bashflux logs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Share types in funcs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix BF version cmd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Set certs paths via env variables
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix package
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm not direct dependencies from Gopkg.toml
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix README
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add def prefix to certificates paths
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* User thiings service for version cmd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename GetReqResp -> SendRequest
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix version help
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return directly the pointer in NewVersionCmd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Define endpoints names as consts and be consistent with naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use Spintf for string concatenation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix README
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix version endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix serverAddr
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix k8s normalizer deployment port
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove targert port
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Expose SenML subject from Normalizer service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Export shared NATS subjects
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update WS tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use require in all writer tests
Refactor code.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Ignore Mainflux generated pb.go files
Ignore *.pb.go files generated by Mainflux, but don't ignore vendored generated code.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Return an exported ErrNotFound instead of the unexported one
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update mocks to match the actual behaviour
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update mocks error message
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add auth service unavailable error test
Since this error is caused by gRPC server returning codes.Internal,
this behaviour is simulated using specific token. When that token is
passed as an auth header, the mock gRPC client returns aforementioned error.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use require package for postgres tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove redundant error checks in tests
Refactor tests.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename error flag token
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add exported metrics visualization in grafana
Add graphics for request count and request latency for users, things,
http adapter and ws adapter services.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Rename grafana export file
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Move metrics configuration to metrics dir
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add redis for message persistence
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add redis to docker composition
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix mqtt publish command in documentation
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update documentation with new environment variables
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add Cassandra writer implementation
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add cassandra service with version and metrics endpoints
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add test for cassandra writer
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Exclude api.go files from code coverage
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add readme file for cassandra writer
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add docker compose configuration for cassandra writer
Add README file. Add docker compose configuration.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add gocql as project dependency
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix init script for cassandra in docker-compose
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add testifies require subpackage
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update dashflux port on kubernetes configuration
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Remove target port from dashflux config
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add load test for WebSocket adapter
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add new test suite to README file
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Rename services, stores, environments and models
Rename services, stores and models to match naming change from `clients` to `things`.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Replace all occurrences of clients with things
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update docker-compose and nginx.conf
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename `clients service` to `things service`
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename function and veriable names
Remove other occurences of `clients` word/prefix/sufix and replace it with `things`.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix error sending id
Id field must not be sent in POST request in order to create a new thing.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Disable thing type edit
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Export location header
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update docker config to use port 3000
Update docker-compose.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Replace id check with bool variable
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename dialogs
Fix bug when creating channel with no connected things.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>