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
Dušan Borovčanin
7a193829f4
MF-139 - Expose metrics from all services ( #213 )
...
* Expose metrics from normalizer service
Add service interface in order to expose method to be monitored.
Signed-off-by: Dušan Borovčanin <borovcanindusan1@gmail.com>
* Refactor normalizer
Add metrics to normalizer service without exporting its internals.
Signed-off-by: Dušan Borovčanin <borovcanindusan1@gmail.com>
2018-04-03 20:25:49 +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
3466776152
Register CoAP adapter to Consul
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-15 18:19:23 +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
2e5316e3fd
Register writer to consul
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-15 18:07:52 +02:00
Dejan Mijic
9c429d142d
Register manager to Consul
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-15 15:25:55 +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
Drasko DRASKOVIC
923a5aefae
Remove println
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-10-08 03:04:49 +02:00
Drasko DRASKOVIC
c7054a07f2
Remove comments, clean code
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-10-07 19:13:20 +02:00
Dejan Mijic
c2d6cc511c
Ensure codestyle adherence
...
Simplified code where possible. Fixed golint suggestions regarding the
missing godoc comments and unnecessary initialized variables.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-10-07 19:13:20 +02:00
Drasko DRASKOVIC
dd874008b2
Initialize properly NATS in CoAP adapter
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-10-01 18:33:55 +02:00
Drasko DRASKOVIC
a79a9012e4
Add coap support
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-10-01 16:38:32 +02:00
Drasko DRASKOVIC
199a44b0a0
Change writer message format - accept raw messages
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-09-29 16:18:41 +02:00
Dejan Mijić
0c629cce47
Merge pull request #95 from mainflux/normalizer
...
Add normalizer
2017-09-24 18:50:02 +02:00
Drasko DRASKOVIC
2554adcc1e
Use interface
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-09-24 17:19:42 +02:00
Drasko DRASKOVIC
3494c7a5e1
Add normalizer
...
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2017-09-24 15:33:58 +02:00
Dejan Mijic
7ea0d444bf
Fix inconsisent label cardinality error
...
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-09-24 07:39:31 +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
Dejan Mijic
bcc0bfdc3d
Integrate message writer service
...
Moved main method to top-level cmd directory. Extracted its dockerfile
as well.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-09-23 01:22:21 +02:00
Dejan Mijic
c966a7802d
Integrate manager service
...
Setup top-level glide dependencies file. Migrated all of the manager
service code into this repository. Fixed docker build procedure.
Extracted executable to the top-level.
Signed-off-by: Dejan Mijic <dejan@mainflux.com>
2017-09-23 01:03:27 +02:00