Dejan Mijić
48484210c2
NOISSUE - Rename clients to things ( #281 )
2018-05-15 17:13:09 +02:00
Aleksandar Novaković
816c172823
MF-164 - Split manager service ( #266 )
2018-05-10 23:53:25 +02:00
Aleksandar Novaković
88b30626dd
MF-174 - Add logger interface and go-kit logger implementation ( #212 )
...
* Add logger interface and go-kit logger implementation
Add wrapper logger interface and wrap go-kit logger in it. Add
tests for info, warn, error and log methods. Add log filtering by
level.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Refactor logger and replace go-kit logger with wrapper
Replace go-kit logger from services with logger wrapper. Refactor
code in logger wrapper. Remove unnecessary subpackage, methods and
log levels.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2018-04-04 10:15:23 +02:00
Aleksandar Novaković
55bdc029c3
Add service startup message ( #190 )
...
* Add service startup message
Add startup message to manager, http, coap and normalizer services.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Remove startup message from CoAP adapter
Remove startup message from CoAP adapter. Remove overhead startup
message variable.
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
2018-03-18 13:54:54 +01:00
Dejan Mijić
ccd8965d6f
Use PostgreSQL as primary persistence solution ( #175 )
...
* Use normalizer as stream source
Renamed 'writer' service to 'normalizer' and dropped Cassandra
facilities from it. Extracted the common dependencies to 'mainflux'
package for easier sharing. Fixed the API docs and unified environment
variables.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Use docker build arguments to specify build
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Remove cassandra libraries
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Update go-kit version to 0.6.0
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Fix manager configuration
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Refactor docker-compose
Merged individual compose files and dropped external links. Remove CoAP
container since it is not referenced from NginX config at the moment.
Update port mapping in compose and nginx.conf. Dropped bin scripts.
Updated service documentation.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Drop content-type check
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Implement users data access layer in PostgreSQL
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Bump version to 0.1.0
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Use go-kit logger everywhere (except CoAP)
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Improve factory methods naming
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Implement clients data access layer on PostgreSQL
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Make tests stateless
All tests are refactored to use map-based table-driven tests. No
cross-tests dependencies is present anymore.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Remove gitignore
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Fix nginx proxying
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Mark client-user FK explicit
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Update API documentation
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Update channel model
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Add channel PostgreSQL repository tests
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Implement PostgreSQL channels DAO
Replaced update queries with raw SQL. Explicitly defined M2M table due
to difficulties of ensuring the referential integrity through GORM.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Expose connection endpoints
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Fix swagger docs and remove DB logging
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Fix nested query remarks
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Add unique indices
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2018-03-11 18:06:01 +01:00
Drasko DRASKOVIC
4f467dcdde
Add HTTP auth check ( #128 )
...
* Add HTTP auth check
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Add HTTP auth via Manager Client
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Change the way manager client is injected
Instead of relying on modifying service structure, manager client is
injected through handler factory method, and store as a variable in that
module.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
* Update dockerignore
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2018-01-07 14:42:38 +01:00
Dejan Mijić
b651537ba9
Revert "Consul integration"
2017-10-16 11:27:11 +02:00
Dejan Mijic
3f9f56d0d4
Register http adapter to consul
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-15 18:08:01 +02:00
Dejan Mijic
11eed2aa2c
Format the startup logs
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-15 14:05:05 +02:00
Dejan Mijic
26a2ea1ce1
Integrate http adapter service
...
Moved main method to top-level 'cmd' directory. Extracted the dockerfile
to the root as well.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-09-23 01:57:14 +02:00