Sammy Kerata Oina
3d0d6e2112
NOISSUE - Add tests for env pkg ( #1796 )
...
* initial test outline
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add env tests
Signed-off-by: SammyOina <sammyoina@gmail.com>
* structure tests in a loop
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove t.Run
Signed-off-by: SammyOina <sammyoina@gmail.com>
* separate test cases
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use switch
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-06-08 15:58:26 +02:00
Drasko DRASKOVIC
7eea06fb40
Remove codeball ( #1806 )
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-05-31 14:57:21 +02:00
Sammy Kerata Oina
1eaa8056a7
NOISSUE - Trace MQTT forward operations ( #1775 )
...
* trace forward operations
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add alias
Signed-off-by: SammyOina <sammyoina@gmail.com>
* replace client from handler
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add tracing to handler
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add comments
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* pass context
Signed-off-by: SammyOina <sammyoina@gmail.com>
* simplify span context management
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix failing tests on nil clients
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add topic
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* vendor modified handler
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use current mproxy
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use mproxy new release
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update mproxy version
Signed-off-by: SammyOina <sammyoina@gmail.com>
* wrap errors
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix ci
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-05-31 12:30:28 +02:00
Sammy Kerata Oina
5ac34e2057
update command example ( #1802 )
...
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-05-30 12:40:47 +02:00
Sammy Kerata Oina
da40c54141
MF-1783 - Improve HTTP / gRPC codes when attempting to publish with nonexistent thing key / channel id ( #1798 )
...
* return 404 for non existent thing key or channel
Signed-off-by: SammyOina <sammyoina@gmail.com>
* check for malformed uuid input
Signed-off-by: SammyOina <sammyoina@gmail.com>
* use replace all
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove uuid check
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-05-29 16:23:39 +02:00
Sammy Kerata Oina
acfa0aa7bb
MF-1801 - Improve error value returned for invalid thing ( #1803 )
...
* update return error value on things
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename var
Signed-off-by: SammyOina <sammyoina@gmail.com>
* uodate var
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-05-29 15:44:55 +02:00
Sammy Kerata Oina
029140a4b0
NOISSUE - Add latency metrics to dashboard ( #1773 )
...
* display latency metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove instant values from display
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove averages from quantiles
Signed-off-by: SammyOina <sammyoina@gmail.com>
* rename legend
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add units to latency metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-05-28 23:08:40 +02:00
b1ackd0t
7cc1dd9f89
MF-969 - Add List API Keys Endpoint ( #1703 )
...
* initial commit
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* Fix CI Test Errors
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-05-25 00:13:29 +02:00
b1ackd0t
408eabaaa6
MF-1699 - Enrich SDK and CLI ( #1719 )
...
* initial commit update api docs
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* initial commit enrich sdk
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* initial commit enrich cli
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* add consumers test
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* remove dead code
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* add certs sdk tests
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* change contact name
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* fix tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Rename Disconnect
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix subscription typo
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Fix Swagger File
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Add Tests
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Change Limit to 10
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Remove empty line
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-05-25 00:02:46 +02:00
Dušan Borovčanin
12a3214578
Fix response code for CoAP POST messages ( #1788 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-05-18 19:50:30 +02:00
charlie-jangala
3b84258a0c
Add Objectives field to Summary metric instantiation ( #1772 )
...
Signed-off-by: Charlie Evans <charlie@janga.la>
2023-04-28 00:26:04 +02:00
Aryan Godara
54c7518316
MF-1718 - Use static code analysis in CI ( #1729 )
...
* things, twins, and logger lint fixed
Signed-off-by: aryan <aryangodara03@gmail.com>
* all services updated, auth jwt not working, ineffectual assignment issue
Signed-off-by: aryan <aryangodara03@gmail.com>
* handle error from grpc server in endpointtest
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, auth/jwt needs to be resolved
Signed-off-by: aryan <aryangodara03@gmail.com>
* revert back to jwt v4 temporarily
Signed-off-by: aryan <aryangodara03@gmail.com>
* updated jwt tokenizer
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve EOF error for httptest requests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix auth jwt, update to registeredclaims
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix ineffective assignment, auth/api/grpc endpoint failing
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, remove later
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server setup
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve golangci tests, remove debug statements
Signed-off-by: aryan <aryangodara03@gmail.com>
* update golangci version and modify linters used
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix failing tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server for setup tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix logging and errors inlined
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix remarks, update grpc setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix data race
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc setup down to single simple function
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix linting issues
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve pr comments
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix tests, handle returned errors, go mod tidy vendor
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix errors from new linters
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: aryan <aryangodara03@gmail.com>
2023-04-22 17:14:35 +02:00
Ian Ngethe Muchiri
7948aa72e8
MF-1761 - Improve path parameters naming ( #1762 )
...
* Improve path parameters naming
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Improve path parameter naming
improve path parameter naming for:
bootstrap/api/transport.go
twins/api/http/transport.go
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Change functions to suit updated path params
Duplicated the functions decodeView and decodeListByConnection to
form new functions decodeThingView, decodeChannelView,
decodeThingListByConnection and decodeChannelListByConnection. This
was as a result of the two functions being used for both view thing
and view channel services
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Improve path parameter naming
Improve path parameter naming for:
auth/api/http/groups/transport.go
bootstrap/api/transport.go
twins/api/http/transport.go
ws/api/endpoints.go
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* fix swagger files
Updated the following swagger files
api/openapi/auth.yml
api/openapi/cert.yml
api/openapi/websocket.yml
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Move websocket.yml from openapi to asyncapi
deleted websocket.yml file in openapi and created websocket.yml file
in asyncapi
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Update websocket.yml file
Update the websocket.yml file to make subtopic optional and
added security (bearerAuth)
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Format new line correctly
format newline for api/asyncapi/websocket.yml
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* update websocket.yml file
update the websocket.yml file based on the requested review changes
The document is now valid
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Update path parameter naming
make changes to path parameter naming in:
api/openapi/consumers-notifiers.yml
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* update path parameters naming
Update path parameters naming to be consistent with Go
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* update the mqtt.yml file
update the mqtt.yml file to the latest AsyncAPI version and
make changes on the security of the server
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Add contact information
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Update api/asyncapi/mqtt.yml
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
* Add an empty line between functions
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
---------
Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-04-20 21:53:02 +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
Aryan Godara
23bc094ec3
NOISSUE - Blocking and Async Consumer Interface ( #1742 )
...
* Add Async Consumer Support
Author: aryan <aryangodara03@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* update consumer_async, fix flush interval
Signed-off-by: aryan <aryangodara03@gmail.com>
* update influxdb from 1.4.0 to 2.12.3
Signed-off-by: aryan <aryangodara03@gmail.com>
* separate tests and update logging and metrics middlewares
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix typos and comments
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix interfaces and tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix interface and add docs
Signed-off-by: aryan <aryangodara03@gmail.com>
* update Consumer interface godoc
Signed-off-by: aryan <aryangodara03@gmail.com>
* update influx-writer logger
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: aryan <aryangodara03@gmail.com>
Co-authored-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-04-20 18:20:53 +02:00
b1ackd0t
ffd67ae154
Fix Load Email Configurations ( #1768 )
...
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-04-17 16:25:57 +02:00
b1ackd0t
7dddd724f6
Add UsersURL to SDK ( #1767 )
...
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
2023-04-17 15:46:13 +02:00
Sammy Kerata Oina
0e3e716c48
NOISSUE - Add prometheus and grafana for metrics ( #1753 )
...
* add prometheus and grafana for metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add grafana tag
move prometheus metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add empty lines
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add example dashboard
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix scraping path
Signed-off-by: SammyOina <sammyoina@gmail.com>
* add things metric to dashboard
Signed-off-by: SammyOina <sammyoina@gmail.com>
* change execution path
Signed-off-by: SammyOina <sammyoina@gmail.com>
* fix typo and switch from yaml to yml
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update dashboard
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update example dashboard
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update dashboard
Signed-off-by: SammyOina <sammyoina@gmail.com>
* remove thresholds from gauges
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-04-14 12:58:11 +02:00
Aryan Godara
b435b80d03
MF-1720 - Improve Test Reports ( #1727 )
...
* resolve merge conflicts
Signed-off-by: aryan <aryangodara03@gmail.com>
* change remaining require with assert
Signed-off-by: aryan <aryangodara03@gmail.com>
* replace assert with require, whenever required.
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix failing tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve assert and require
Signed-off-by: aryan <aryangodara03@gmail.com>
* revert groups_test
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: aryan <aryangodara03@gmail.com>
2023-04-12 17:30:01 +02:00
dependabot[bot]
eb77f3df50
Bump github.com/docker/docker ( #1760 )
...
Bumps [github.com/docker/docker](https://github.com/docker/docker ) from 20.10.21+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases )
- [Commits](https://github.com/docker/docker/compare/v20.10.21...v20.10.24 )
---
updated-dependencies:
- dependency-name: github.com/docker/docker
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 15:12:40 +02:00
dependabot[bot]
ca59d92354
Bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 ( #1756 )
...
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc ) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases )
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md )
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.4...v1.1.5 )
---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 18:36:35 +02:00
Sammy Kerata Oina
03475eb0af
MF-1749 - Remove duplicate case in error handling
...
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-03-28 15:24:05 +02:00
Sammy Kerata Oina
83ff4e12ea
MF-512 - Change service default ports ( #1737 )
...
* Change service Default ports
Updated ports:
- auth http 9000
- auth grpc 7000
- provision http 9001
- things http 9002
- things auth http 9003
- things auth grpc 7001
- twins http 9004
- users http 9005
- bootstrap http 9006
- cassandra-reader http 9007
- cassandra-writer http 9008
- influxdb-reader http 9009
- influxdb-writer http 9010
- lora http 9011
- mongodb reader http 9012
- mongodb writer http 9013
- postgres-reader http 9014
- postgrs-writer http 9015
- smpp-notifier http 9016
- smtp-notifier http 9017
- timescale-reader http 9018
- timescale-writer http 9019
Signed-off-by: SammyOina <sammyoina@gmail.com>
* change default service ports on env and sh
Signed-off-by: SammyOina <sammyoina@gmail.com>
* change things url default port
Signed-off-by: SammyOina <sammyoina@gmail.com>
* change default ports order by importance
- auth http 9000
- auth grpc 7000
- things http 9001
- things auth http 9002
- things auth grpc 7001
- users http 9003
- cassandra-reader http 9004
- cassandra-writer http 9005
- influxdb-reader http 9006
- influxdb-writer http 9007
- mongodb reader http 9008
- mongodb writer http 9009
- postgres-reader http 9010
- postgres-writer http 9011
- timescale-reader http 9012
- timescale-writer http 9013
- bootstrap http 9014
- smpp-notifier http 9015
- smtp-notifier http 9016
- provision http 9017
- lora http 9018
- twins http 9019
Signed-off-by: SammyOina <sammyoina@gmail.com>
* lower port number in auth service
Signed-off-by: SammyOina <sammyoina@gmail.com>
* change things and users port
- things 9000
- things auth 9001
- things auth grpc 7000
- users 9002
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update documentaton to new port numbers
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update test and metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* update host on metrics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* resolving conflics
Signed-off-by: SammyOina <sammyoina@gmail.com>
* set http adapter port to :80
Signed-off-by: SammyOina <sammyoina@gmail.com>
* reassign http port on metrics to :80
Signed-off-by: SammyOina <sammyoina@gmail.com>
* reassign http adapter port
Signed-off-by: SammyOina <sammyoina@gmail.com>
* set http adapter port to 8008
Signed-off-by: SammyOina <sammyoina@gmail.com>
* document http adapter default port
Signed-off-by: SammyOina <sammyoina@gmail.com>
---------
Signed-off-by: SammyOina <sammyoina@gmail.com>
2023-03-23 21:55:11 +01:00
b1ackd0t
d4fc7bab07
NOISSUE - Fix Send Response for Publishing Message ( #1740 )
...
* Initial Commit: Send Response for Publishing Message
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
* Use Defer
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
2023-03-16 11:48:57 +01:00
Aryan Godara
986edacfc7
MF-1584 - Upgrade InfluxDB from 1.x to 2.x ( #1709 )
...
* Upgrade InfluxDB from 1.x to 2.x
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influx DB configuration updated
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connection to InfluxDBv2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Token cannot be created
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connected to InfluxDB2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connected to InfluxDB2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB v2 Consumer Implementation
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* quickfix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb-Writer Unit Tests Update
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Consumer Update
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB Writer Tests Implemented
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB Connection Check
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolving Remarks
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved consumer-test remark
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* consumer-test slow working version
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* reader changes
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Consumer tests time issue fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Eof warning fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Makefile Fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Readers Initial Setup
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* consumer json fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Bugfix and resolves comments.
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* one test fails
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* solved last page read
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* writers future time problem fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* weird
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* weird
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Tests Passes
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolve Semaphore Issues
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* UUID comment on consumer tests resolved
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Inclusive from and Exclusive to
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Inclusive from and Exclusive to
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* 1 second limits
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* 1 second limits
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fixed json time
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fixed CI error
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved request
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved request
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved requests
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* removed blank line
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved comment
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* deleted unnecessary string builder
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* initial commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* change influxdb docker image version.
Signed-off-by: aryan <aryangodara03@gmail.com>
* go mod and vendor fixing
Signed-off-by: aryan <aryangodara03@gmail.com>
* Upgrade InfluxDB from 1.x to 2.x
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influx DB configuration updated
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connection to InfluxDBv2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Token cannot be created
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connected to InfluxDB2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Connected to InfluxDB2
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB v2 Consumer Implementation
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* quickfix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb-Writer Unit Tests Update
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Consumer Update
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB Writer Tests Implemented
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* InfluxDB Connection Check
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolving Remarks
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved consumer-test remark
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* consumer-test slow working version
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* reader changes
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Consumer tests time issue fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolved Reviews
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Readers Initial Setup
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* consumer json fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* readers simple version fix
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Influxdb Reader Parsers
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Bugfix and resolves comments.
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* one test fails
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* solved last page read
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* writers future time problem fixed
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* weird
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* weird
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Tests Passes
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Resolve Semaphore Issues
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* UUID comment on consumer tests resolved
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Inclusive from and Exclusive to
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* Inclusive from and Exclusive to
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* 1 second limits
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* 1 second limits
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved review
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fixed json time
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* fixed CI error
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved request
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved request
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved requests
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* removed blank line
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* resolved comment
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* deleted unnecessary string builder
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
* initial commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* change influxdb docker image version.
Signed-off-by: aryan <aryangodara03@gmail.com>
* go mod and vendor fixing
Signed-off-by: aryan <aryangodara03@gmail.com>
* go mod fixing
Signed-off-by: aryan <aryangodara03@gmail.com>
* make tests pass locally, fix errors
Signed-off-by: aryan <aryangodara03@gmail.com>
* rem unsused variables/consts
Signed-off-by: aryan <aryangodara03@gmail.com>
* go mod tidy vendor
Signed-off-by: aryan <aryangodara03@gmail.com>
* add env var and data types
Signed-off-by: aryan <aryangodara03@gmail.com>
* update influxdb version to latest (2.3 to 2.12)
Signed-off-by: aryan <aryangodara03@gmail.com>
* change time precision for message tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* renamed influxdb2 to influxdata
Signed-off-by: aryan <aryangodara03@gmail.com>
* address remarks on PR
Signed-off-by: aryan <aryangodara03@gmail.com>
* update influxbd according to latest mf commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, rem before pushing
Signed-off-by: aryan <aryangodara03@gmail.com>
* update main files and cassandra-reader messages_tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix name of logger while importing
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove unnecessary print lines
Signed-off-by: aryan <aryangodara03@gmail.com>
* correct env var name
Signed-off-by: aryan <aryangodara03@gmail.com>
* change to async consume
Signed-off-by: aryan <aryangodara03@gmail.com>
* add option to switch bw sync and async
Signed-off-by: aryan <aryangodara03@gmail.com>
* test for both async and sync
Signed-off-by: aryan <aryangodara03@gmail.com>
* update consumer and add writeAPIs to config
Signed-off-by: aryan <aryangodara03@gmail.com>
* revert back to sync consuming
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp fix for default timeout value
Signed-off-by: aryan <aryangodara03@gmail.com>
* set default timeout in config.
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove unwanted env vars, add required ones.
Signed-off-by: aryan <aryangodara03@gmail.com>
* rem unused username password from config
Signed-off-by: aryan <aryangodara03@gmail.com>
* update readme, env vars, and remove grafana
Signed-off-by: aryan <aryangodara03@gmail.com>
* update readme
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix typo
Signed-off-by: aryan <aryangodara03@gmail.com>
* update readme description.
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix more typos.
Signed-off-by: aryan <aryangodara03@gmail.com>
* add link to official docs to readme.
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: fatih <fatihdurmaz@sabanciuniv.edu>
Signed-off-by: aryan <aryangodara03@gmail.com>
Co-authored-by: fatih <fatihdurmaz@sabanciuniv.edu>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2023-03-16 02:36:14 +01:00
Drasko DRASKOVIC
cea1def6a8
Correct Codeball permissions ( #1746 )
...
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
2023-03-14 23:21:17 +01:00
Drasko DRASKOVIC
e6a3ce1fa2
Add Codeball code review ( #1745 )
...
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
2023-03-14 23:13:20 +01:00
Drasko DRASKOVIC
442afb5dd9
Add Codeball review
2023-03-14 22:46:27 +01:00
dependabot[bot]
a12698b53d
Bump golang.org/x/net from 0.5.0 to 0.7.0 ( #1730 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-22 22:36:21 +01:00
Dušan Borovčanin
c0c72491ff
NOISSUE - Logger Fatal method returns no value ( #1728 )
...
* Make Fatal return no value
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Fatal test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename logger imports
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace Fatal with Fatalf
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor Logger tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix expected and actual order inversion
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
---------
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2023-02-22 20:50:51 +01:00
Aryan Godara
108077a356
MF-1698 - Add Fatal to Mainflux logger ( #1721 )
...
* initial commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* return func() from fatal function
Signed-off-by: aryan <aryangodara03@gmail.com>
* use log.fatal in cassandra setup_tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* removed fatal log level
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: aryan <aryangodara03@gmail.com>
2023-02-21 13:02:57 +01:00
dependabot[bot]
19dbf9fadd
Bump github.com/pion/dtls/v2 from 2.1.5 to 2.2.4 ( #1722 )
...
Bumps [github.com/pion/dtls/v2](https://github.com/pion/dtls ) from 2.1.5 to 2.2.4.
- [Release notes](https://github.com/pion/dtls/releases )
- [Commits](https://github.com/pion/dtls/compare/v2.1.5...v2.2.4 )
---
updated-dependencies:
- dependency-name: github.com/pion/dtls/v2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 00:39:37 +01:00
Arvindh
d00d13dabb
MF-1556 - Move the most used functions in main.go to internal package ( #1601 )
...
* MF-1525 - Add graceful stop for HTTP and GRPC servers (#1548 )
* Add : errgroup to cmd/auth
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Handle graceful stop for auth service
Remove : errgroups from auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Wait till server shutdown
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Change : instead of waitgroup changed to errgroups
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : KillSignalHandler return type to error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Empty Commit
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Context to http server shutdown
Rename : varaible from proto to protocol
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : to default log level
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Sign-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: graceful stop of http and grpc server
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: typos and caps
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: Signed-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename: Func KillSignalHandler to SignalHandler
Add: SIGABRT
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: timeout for grpc gracefulstop
Fix: typos
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: .vscode folder to git ignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: variable name to stopWaitTime
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode folder
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode from .gitignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : logger to handlers
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : New line at end of .gitignore file
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix : variable naming
Add : graceful stop for timescale
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Remove : unsued NATS library from import
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "https" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "http" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* update: branch with master
Signed-off-by: Arvindh <arvindh91@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: httpserver and grpcsever
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 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>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* move http and grpc server functions
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move Keto and Jaeger
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add metrics and auth
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* MF - 1590 - Fix fetching list of users with a zero limit (#1594 )
* Add max and min limit size
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* NOISSUE - Retrieve client key on cert issuing (#1607 )
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix bug (#1604 )
Signed-off-by: zhangchuanfeng <654300242@qq.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename service name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Change metrics method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename package name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 🚚 Rename Keto and Jaeger functions
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify grpc service
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 🚚 rename apiutil to initutil
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* ✨ coap server
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 🚚 rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 🚚 Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* ♻️ rename packages
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* ♻️ remove mf prefix
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* 🚚 rename server error
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove dead code
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* MF - 1416 - Queue Abstraction for Mainflux & RabbitMQ Support (#1562 )
* MF-1263 - Move repeating errors to the separate package (#1540 )
* MF-1263 - Mv duplicated errors to pkg/errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert test build flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Fix auth members list response (#1555 )
* NOISSUE - Fix auth members list response
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Move group type next to page details
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm membersRes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz (#1538 )
* MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* ErrExternalKey typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename ErrUnauthorizedAcces -> ErrAuthentication
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bootstrap error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status code in openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add errors cases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status codes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add gRPC stutus code
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tests description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi and encodeError
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix grpc message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test descriptions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert sdk error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1059 - Add TLS support for email (#1560 )
* Use gomail package for sending emails
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove print err
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Add vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Rename email structure
remove logger
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* typo in var name
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* rename var
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove MF_EMAIL_SECRET
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Refactor MQTT subscriber (#1561 )
* correct suscriber interface validator + refactore token error handling
Signed-off-by: tzzed <zerouali.t@gmail.com>
* apply review suggestion
Signed-off-by: tzzed <zerouali.t@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1257 - Access messages from readers endpoint with user access token (#1470 )
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add user auth for db reader
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add user auth for db reader
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable mongodb reader for user token reading
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* use uuid check for auth switch between thing key and user tok
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable user token reading
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* revert to correct version
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix endpoint test, add additional tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove logs,dead code
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix logging messages
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove auth interface, add authorization header type
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* update api doc
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused package
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* some refactor of cases for authorization switch
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* correct description in openapi
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix endpoint test to match auth service change
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* some rename
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* initialize auth url
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add env variables for auth service
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix spelling
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* Things prefix and no prefix for Thing authorization, Bearer for user
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* update readme file
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix default things grpc port
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* enable user reading for timescaledb
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove not used error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* improve errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* refactor authorize
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* add chanID check
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* inline some error checking
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fixing errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fixing errors
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* improve test case description
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove test code
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* dont inline
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* refactor a bit encodeError
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix things auth grpc url
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* rename variables for header prefix
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Initial commit of adding rabbitmq broker
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Initial commit of adding rabbitmq broker
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Initial commit for tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Bump up tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add more tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add go routines
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Initial commit of adding rabbitmq broker
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Initial commit for tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Bump up tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add more tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add go routines
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix with wait groups
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* unsubscribe to stop delivering messages
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove exclusivity
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1551 - Fix Cobra usage commands and clean unnecessary struct types (#1558 )
* MF-1551 - Fix Cobra usage commands and clean unnecessary struct types
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use linux syntax for cmd usage description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cmd.Use
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Separate Keto hosts for read and write (#1563 )
* Separate keto hosts for read and write
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* update readme with new envars
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* rename read connection name
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update dependencies (#1564 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1240 - Return to service transport layer only service errors (#1559 )
* MF-1240 - Return to service transport layer only service errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove unecessary errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated errors and fix transport
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert http endpoint_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix conflict
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Implement cancel mechanisms
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Queuename as parameter
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Queuename as parameter
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1469 - Indicate proper authentication scheme in Authorization header (#1523 )
* MF-1469 - Indicate proper authentication scheme in Authorization header
Signed-off-by: Stefan Kovacevic <jen2tri@gmail.com>
* Fixing the remarks on the last push
Signed-off-by: Stefan Kovacevic <jen2tri@gmail.com>
* Remove Bearer prefix in all services and fix tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Add nats wrapper for COAP (#1569 )
* Add nats wrapper for COAP
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Pass pubsub as argument
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Defer close connection
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Defer close connection
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Rename endpoint to topic
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1348 - Add transport errors logging (#1544 )
* MF-1348 - Add go-kit transport level logging
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remark
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix go test flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in things and http service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix SDK tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in certs and provision service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in consumers service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* General renaming and add ErrMissingToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename httputil -> apiutil and use errors in users servive
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use apiutil errors in auth, bootstrap, readers, things and twins
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace errors.Contain by comparison
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify and rename ExtractAuthToken -> ExtractBearerToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix auth key test and remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateUUID check
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1567 - Use Bearer, Thing or Basic scheme in Authorization header (#1568 )
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1565 - Document Bearer, Thing and Basic Authorization header (#1566 )
* MF-1565 - Document Bearer Authorization header
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix auth, bootstrap, http and readers openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add enc key for bootstrap
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use global security
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bearer formats
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Polish descriptions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix boostrap and typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1575 Add 'Name' field to ListMembers response in things svc (#1576 )
Signed-off-by: Ivan Balboteo <ivan@submer.com>
Co-authored-by: Ivan Balboteo <ivan@submer.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1580 - Influxdb Writer changes format of update-time to string (#1581 )
* - MF-1580
- Modified consumers/writers/influxdb/fields.go
- influxdb-writer used to update data type of update-time to string
- Commented line 12 of consumers/writers/influxdb/fields.go to resolve
uneccessary data type conversion issue
Signed-off-by: Hasan Tariq <hasantariqashraf@gmail.com>
* - MF-1580
- Removed strconv package from consumers/writers/influxdb/fields.go since it is no longer needed
- Removed line 12 from consumers/writers/influxdb/fields.go
- Replaced retrun value of updateTime with msg.UpdateTime (line 16 in
fields.go)
Signed-off-by: Hasan Tariq <hasantariqashraf@gmail.com>
* Fix InflxuDB readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Hasan Tariq <hasant@plcgroup.com>
Co-authored-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Unify MF_INFLUX_READER_DB_HOST and MF_INFLUX_WRITER_DB_HOST envars (#1585 )
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Fix CoAP adapter (#1572 )
* Revert "NOISSUE - Add nats wrapper for COAP (#1569 )"
This reverts commit cc5d5195ab
.
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CoAP adapter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update CoAP observation cancel
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix observe
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix GET handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Revert authorization
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use constants instead of magic numbers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove an empty line
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract special observe value to constant
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1582 - Fix lora-adapter MQTT client (#1583 )
* MF-1582 - Fix lora-adapter MQTT clien
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add timeout config to the mqtt subscriber
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add sub timeout
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Update changelog and readme for release 0.13.0 (#1592 )
* Update release example
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update changelog and examples for 0.13.0 release
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update VerneMQ release (#1593 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Update changelog for release 0.13.0 (#1595 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* unexport constants
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change routingkey
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove wait groups
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* protecting map
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add publisher to pubsub
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change proto library
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix typos
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Reduce pubsub tests based on implementation
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove channel cancel
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Export constant
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Move invariant statements out of loop for cassandra-writer (#1596 )
Signed-off-by: fuzhy <fuzhy1997@outlook.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Embedding publisher into pubsub
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Naming publisher
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Fix Nginx entrypoint script (#1597 )
* Fix Nginx entrypoint script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix NginX entrypoint
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Revert Makefile changes
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF-1525 - Add graceful stop for HTTP and GRPC servers (#1548 )
* Add : errgroup to cmd/auth
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Handle graceful stop for auth service
Remove : errgroups from auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Wait till server shutdown
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Change : instead of waitgroup changed to errgroups
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : KillSignalHandler return type to error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Empty Commit
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Context to http server shutdown
Rename : varaible from proto to protocol
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change : to default log level
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : Sign-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: graceful stop of http and grpc server
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: typos and caps
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: Signed-off
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Rename: Func KillSignalHandler to SignalHandler
Add: SIGABRT
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix: auth service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: timeout for grpc gracefulstop
Fix: typos
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: .vscode folder to git ignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: variable name to stopWaitTime
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode folder
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: .vscode from .gitignore
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : logger to handlers
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add : New line at end of .gitignore file
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Fix : variable naming
Add : graceful stop for timescale
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Remove : unsued NATS library from import
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "https" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Move: "http" and "https" to moved to const var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* update: branch with master
Signed-off-by: Arvindh <arvindh91@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* 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>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update rabbitmq subscriber interface
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* using publisher composition
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change contenttype
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* rename topic for publish and subscribe
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change errors to lower case
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change errors to lower case
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* export errors
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* MF - 1590 - Fix fetching list of users with a zero limit (#1594 )
* Add max and min limit size
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Format
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* NOISSUE - Retrieve client key on cert issuing (#1607 )
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* fix bug (#1604 )
Signed-off-by: zhangchuanfeng <654300242@qq.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* queue per subscription
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* queue per subscription
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change routing method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Direct method with one exchange to many queues, one consumer per queue
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* ♻️ Not casting data
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* ✏️ Fix typo
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* ♻️ remove passed queue name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* 🔥 removing echange kind
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Combine tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Refactor unsubscribe method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix merge conflict
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* ✅ sub and unsub to dummy topic
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* generate client id from topic and ID
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Rename topicID to clientID
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* update tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Reuse clientID
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix typos
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Seperate testpublish and testpubsub
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Manuel Imperiale <manuel.Imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Ivan Milošević <iva@blokovi.com>
Co-authored-by: __touk__ <zerouali.t@gmail.com>
Co-authored-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Co-authored-by: stefankovacevic123 <jen2tri@gmail.com>
Co-authored-by: ibalboteo <ivanbalboteo@gmail.com>
Co-authored-by: Ivan Balboteo <ivan@submer.com>
Co-authored-by: Hasan98-git <67228396+Hasan98-git@users.noreply.github.com>
Co-authored-by: Hasan Tariq <hasant@plcgroup.com>
Co-authored-by: fuzhy <fuzhy1997@outlook.com>
Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com>
Co-authored-by: 张传峰 <59160162+zhang-chuanfeng@users.noreply.github.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* NOISSUE - Fix Groups SDK (#1609 )
* Fix Groups SDK
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CLI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* NOISSUE - Fix CI script (#1613 )
* Fix CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter errors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add timeout to linter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* NOISSUE - Make application/json content-type valid in http-adapter (#1606 )
* NOISSUE - Make application/json content-type valid in http-adapter
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add CBOR content-type
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI flag
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI install
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Upgrade grpc version
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* rm cli
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Specify size of channel
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* NOISSUE - fix pull request template typo (#1616 )
* Fix typo
Signed-off-by: Filip Bugarski <filipbugarski@gmail.com>
* Change link
Signed-off-by: fbugarski <filipbugarski@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: load configuration function
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: load config from env with pkg caarlos0/env
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: mfdatabase to internaldb
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Add: httpserver and grpcsever
Signed-off-by: Arvindh <arvindh91@gmail.com>
move http and grpc server functions
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Move Keto and Jaeger
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Add metrics and auth
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Rename service name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Change metrics method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Rename package name
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
🚚 Rename Keto and Jaeger functions
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
unify grpc service
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
🚚 rename apiutil to initutil
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
✨ coap server
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
🚚 rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
🚚 Rename
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
♻️ rename packages
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
♻️ remove mf prefix
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
🚚 rename server error
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
remove dead code
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
NOISSUE - Fix CI script (#1613 )
* Fix CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter errors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add timeout to linter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Specify size of channel
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Add: load configuration function
Signed-off-by: Arvindh <arvindh91@gmail.com>
change: load config from env with pkg caarlos0/env
Signed-off-by: Arvindh <arvindh91@gmail.com>
* change: mfdatabase to internaldb
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: merge resolve error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: merge resolve error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: merge resolve error
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: unused variables
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: address variable in servers
Signed-off-by: Arvindh <arvindh91@gmail.com>
* move: postgres connect to internal
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: client wrapper for most used
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: client wrapper for env
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify : auth, bootstrap, cassandra reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify : bootstrap code
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify : cassandra writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: struct tag to envDefault
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: grpc prefix
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: env parser
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: alt prefix
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: env default tag
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: auth grpc config
Signed-off-by: Arvindh <arvindh91@gmail.com>
* changes: internal approch and service start
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: http adapter service
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: unused code in http adapter"
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: config environment variable tags
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: timescale writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: timescale reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: thing main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: smtp-notifier
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: smpp-notifier
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: postgres reader and writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify: twins
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify certs main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify certs main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify coap main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify lora main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix fatalf
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify mqtt main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify mqtt main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify ocpua adapter main.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix case
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify ws_adapter
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify ws_adapter
Signed-off-by: Arvindh <arvindh91@gmail.com>
* unify ws_adapter
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add : comment and spacing
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: lint errors
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: lint errors
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: main.go config load
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: main.go config load
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: auth main.go keto config
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: package internal/sqlxt
Signed-off-by: Arvindh <arvindh91@gmail.com>
* code format : internal/client/grpc/connect.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: inline code
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: code format
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: inline and code format
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: moved to single block
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: moved to single block
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: export function comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: export function comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: export function comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: export function comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: export function comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remane: newtracer.go to tracer.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* renamee: authClient.go and thingsClient.go to client.go
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove space
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: jaeger default value
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: cassander config default values
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename file
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: postgres client config default values
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add setup with default config
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: mongo client config default values
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: postgres default db name in services
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for auth
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for bootstrap
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for cassandra-reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for cassandra-writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for certs
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for coap
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for http-adapter
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for influx-reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for influx-writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for lora
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for mongodb-reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for mongodb-writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for mqtt
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for opcua
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for postgres-reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for postgres-writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for smpp-notifier
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for smtp-notifier
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for things
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for timescale-reader
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for timescale-writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for twins
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for users
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: environment variable default for ws
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: unused variables
Signed-off-by: Arvindh <arvindh91@gmail.com>
* empty commit
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: redis env variables
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: adapter ports and postgres db name
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: adapter ports
Signed-off-by: Arvindh <arvindh91@gmail.com>
* comments aligned
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename cassandra session variable
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename influxdb and influx to influxDB
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename EsConsumername to ESConsumerName
Signed-off-by: Arvindh <arvindh91@gmail.com>
* made comments consistant
Signed-off-by: Arvindh <arvindh91@gmail.com>
* made comments consistant & remove empty lines
Signed-off-by: Arvindh <arvindh91@gmail.com>
* made comments consistant & renmae function
Signed-off-by: Arvindh <arvindh91@gmail.com>
* made comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* comments added
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix bootstrap
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix empty env var
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove : unused variable
Signed-off-by: Arvindh <arvindh91@gmail.com>
* update: env parser library
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: mongodb reader and writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* fix: cassandra reader and writer
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename: directory
Signed-off-by: Arvindh <arvindh91@gmail.com>
* rename: variable
Signed-off-by: Arvindh <arvindh91@gmail.com>
* remove: unused librar
Signed-off-by: Arvindh <arvindh91@gmail.com>
* Format code and remove unused comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move test URL construction out of the loop
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* remove end dot in single line comments
Signed-off-by: Arvindh <arvindh91@gmail.com>
* empty
Signed-off-by: Arvindh <arvindh91@gmail.com>
---------
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: zhangchuanfeng <654300242@qq.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: fbugarski <filipbugarski@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Co-authored-by: b1ackd0t <blackd0t@protonmail.com>
Co-authored-by: Manuel Imperiale <manuel.Imperiale@gmail.com>
Co-authored-by: 张传峰 <59160162+zhang-chuanfeng@users.noreply.github.com>
Co-authored-by: Ivan Milošević <iva@blokovi.com>
Co-authored-by: __touk__ <zerouali.t@gmail.com>
Co-authored-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Co-authored-by: stefankovacevic123 <jen2tri@gmail.com>
Co-authored-by: ibalboteo <ivanbalboteo@gmail.com>
Co-authored-by: Ivan Balboteo <ivan@submer.com>
Co-authored-by: Hasan98-git <67228396+Hasan98-git@users.noreply.github.com>
Co-authored-by: Hasan Tariq <hasant@plcgroup.com>
Co-authored-by: fuzhy <fuzhy1997@outlook.com>
Co-authored-by: Filip Bugarski <filipbugarski@gmail.com>
2023-02-03 17:36:18 +01: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
2e118ce36b
NOISSUE - Update Nginx Docker Image ( #1706 )
...
* initial commit
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* update tests
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* initial commit
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* update tests
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* add empty line
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* update certs
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove serial file
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* fix check password from certs
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* change from include to endswith
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
---------
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-29 01:58:28 +01:00
b1ackd0t
5f9b3c9905
initial commit ( #1708 )
...
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-24 15:10:25 +01:00
b1ackd0t
d008ae5d97
NOISSUE - Add cert revocation to SDK ( #1693 )
...
* initial commit
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* fix certificate revoking
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* change from mapstructure to json
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* add comments to serial modification
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* fix typo
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* update vault docker version
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* write env variables
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* change env path
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* return revocation time
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* revert to intermediate CA
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove deadcode
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* make revoke cert output readable
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove keybits and keytype
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove dead code
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* make inline
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* add empty line
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove commented code
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove keyBits
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* remove keyBits
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-13 14:33:00 +01:00
b1ackd0t
b83a344093
NOISSUE - Update SDK and Things Service ( #1694 )
...
* add reader url
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* fix connected and not-connected
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-11 17:11:36 +01:00
b1ackd0t
b502af65fe
NOISSUE - Update Read Message CLI ( #1696 )
...
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-10 12:00:12 +01:00
b1ackd0t
2cfcbfb1e2
NOISSUE - Fix Bootstrap CLI ( #1695 )
...
Reorder SDK params (external id and key) for Bootstrap service.
2023-01-10 11:13:09 +01:00
b1ackd0t
48e368b59a
NOISSUE - Combining Query Parameters ( #1631 )
...
* Initial commit
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* Initial commit
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* Fix CI
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* fix tests: add enabled status key
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* start with token
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-05 17:20:05 +01:00
Aryan Godara
302d71e8cb
NOISSUE - Update pubsub tests for rabbitmq ( #1656 )
...
* testPubSub failing on channel
Signed-off-by: aryan <aryangodara03@gmail.com>
* testPubSub failing, rest passing
Signed-off-by: aryan <aryangodara03@gmail.com>
* all tests passing
Signed-off-by: aryan <aryangodara03@gmail.com>
* removed unnecessary lines
Signed-off-by: aryan <aryangodara03@gmail.com>
* rename subunsub to unsubscribe
Signed-off-by: aryan <aryangodara03@gmail.com>
* nats tests working, rabbitmq left
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix TestPublisher
Signed-off-by: aryan <aryangodara03@gmail.com>
* changed clientID of pubsub
Signed-off-by: aryan <aryangodara03@gmail.com>
* testSubscribe failing, rest all passing
Signed-off-by: aryan <aryangodara03@gmail.com>
* testPubsub failing
Signed-off-by: aryan <aryangodara03@gmail.com>
* TestSubscribe(s) failing, rest tests passing.
Signed-off-by: aryan <aryangodara03@gmail.com>
* For Rabbitmq, all tests are passing.
Signed-off-by: aryan <aryangodara03@gmail.com>
* For Nats, All tests passing, but unreliable
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix typos and improve variable names.
Signed-off-by: aryan <aryangodara03@gmail.com>
* nats tests passing, rabbitmq half tests passing.
Signed-off-by: aryan <aryangodara03@gmail.com>
* all tests working.
Signed-off-by: aryan <aryangodara03@gmail.com>
* removed commented out, dead code.
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix errors, queuesubscribe tests for nats.
Signed-off-by: aryan <aryangodara03@gmail.com>
* updated broker.Connect to opts.Connect for nats.
Signed-off-by: aryan <aryangodara03@gmail.com>
* experimental soluton
Signed-off-by: aryan <aryangodara03@gmail.com>
* Revert nats back to original status.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unnecessary commit
Signed-off-by: aryan <aryangodara03@gmail.com>
Signed-off-by: aryan <aryangodara03@gmail.com>
2022-12-31 02:18:31 +01:00
b1ackd0t
6f2ce82263
Don't throw an error if users status type exists
...
Signed-off-by: 0x6f736f646f <b1ackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <b1ackd0t@protonmail.com>
Co-authored-by: 0x6f736f646f <b1ackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-12-29 12:14:46 +01:00
Arvindh
57e3c25d3d
NOISSUE - Trim trailing and leading whitespaces in email at login & register ( #1687 )
...
* add: trim email in users at login & register
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: trim email in users at login & register
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: trim email in users at login & register
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-12-21 19:03:52 +01:00
Dušan Borovčanin
f438d24c41
MF-1681 - Failed to reconnect to NATS ( #1686 )
...
* Make NATS reconnect never give up
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract maxReconnects to a constant
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-12-21 14:08:02 +01:00
Aryan Godara
e6e9d22133
MF-1670 - Improve error handling in SDK ( #1674 )
...
* initial commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove unused variables.
Signed-off-by: aryan <aryangodara03@gmail.com>
* removed temporarily created file.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix failing CI
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix thing_test failing cases.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove dead code, debug statements, and add comments.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Extract errors to separate file.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Updated things/api/http tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* Created custom SDK error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Changed to using CheckError. All tests passing.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Replace error interface with errors.SDKError interface.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix failing CI.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused sdk errors.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Change SDKError to error in internal function of sdk package.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove encodeError. All tests working.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Rename sdkerr vars, convert common strings to constants.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Change checkerror to take error instead of string.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused errors, and removed errfailedwhitelist wrap.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Removed unused errors, and remove errors.go since it only had a repeated error from errors package
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused errors.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Update sdk_error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Used function to reduce code for sending and receiving requests.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Added function sendrequestandgetheadersorerror.
Signed-off-by: aryan <aryangodara03@gmail.com>
* sdk_error updated.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Updated function names to processRequest.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Made errors internal, fixed typo in http.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove empty line.
Signed-off-by: aryan <aryangodara03@gmail.com>
* merged proceessBody and processHeaders functions in sdk.
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove sendThingRequest function.
Signed-off-by: aryan <aryangodara03@gmail.com>
* changed processRequest signature
Signed-off-by: aryan <aryangodara03@gmail.com>
* changed processRequest signature, changed error names.
Signed-off-by: aryan <aryangodara03@gmail.com>
Signed-off-by: aryan <aryangodara03@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-12-15 16:24:19 +01:00
Dušan Borovčanin
a48fb944c6
MF-1667 - Postgres lib update ( #1680 )
...
* Replace SQL lib in Things and Users
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Bootstrap DB lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename pqErr to pgErr
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Auth db lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update DB lib in consumers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update DB lib for Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Certs DB lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove "lib/pq" from dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update vendor
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Go version for base image in Dockerfile
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove unused Provision Dockerfile
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move error codes to init.go files
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add missing comment
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use Error Codes lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Go version in CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update mod file
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-12-13 15:34:01 +01:00
Arvindh
47fd646030
MF-1678 - Fetching users returns an invalid status code response ( #1679 )
...
* fix: get /users authorize err code
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: test case for forbidden request in GET /users
Signed-off-by: Arvindh <arvindh91@gmail.com>
* update: api docs of GET /users
Signed-off-by: Arvindh <arvindh91@gmail.com>
* add: test case for forbidden request in GET /users
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
2022-12-07 12:31:01 +01:00
Zoran Rebic
933b5dedce
MF-1197 - Add MQTT adapter tests ( #1622 )
...
* MF-1197 - add mqtt tests
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - add test cases
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - refactor tests
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix test names.Add const
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add mocks. Add publish test
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add buffer to logger
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add redis mock.Change logger error
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add new test cases
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix session fields
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix bad logs. Fix tests
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add new test case.Fix names.
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix test name
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Refactoring tests
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Wrap errors
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Wrap errors. Fix logs level
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Wrap errors.
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix var names
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-888 - Add clientID err check.Refactor tests
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Fix info and err names
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Remove redundant log and channel parts check
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Revert channel parts check
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add authorize test case
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Remove unused var
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Change var name
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 -Add missing test case.Change var name
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 -Add err case.
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 -Change var name
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Use logMsg for all logs
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Use logs instead of errors
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Use redis mock
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Return interface in constructor
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add missing test cases. Create consts
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Add global vars
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Refactor code
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Remove unused var
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Remove unnecessary var
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Use created session client
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Refactor vars
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
* MF-1197 - Separate constant
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
Signed-off-by: zzokki81 <zoran.rebic@outlook.com>
2022-11-21 14:40:19 +01:00
Dušan Borovčanin
677f3c70b0
Update Go version and dependencies ( #1663 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-10-26 15:56:35 +02:00