3
0

15 Commits

Author SHA1 Message Date
Tit Petric
9bfa4a0554 upd(all): update vendored code 2018-07-29 23:22:36 +02:00
Denis Arh
3768cddbe7 Update titpetric/factor 2018-07-28 09:03:50 +02:00
Denis Arh
d886a98740 Implements JWT authorization along with some refactoring
- introduces auth package, for common (sam, crm) auth handlers
 - routes are now generated inside server package, each handler got its own MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
 - there MountRoute methods are now called from non-generated code so we can inject services to (rest) controllers
2018-07-26 20:12:14 +02:00
Tit Petric
6e30992a67 upd(vendor): factory database context, resputil logger 2018-07-23 17:22:10 +02:00
Tit Petric
a7957fa804 add(vendor): import gorilla/websocket 2018-07-19 20:19:20 +02:00
Tit Petric
a583363724 update vendor 2018-07-17 20:57:48 +02:00
Tit Petric
a1cccd23d3 upd(vendor): update factory db with MustGet() 2018-07-17 18:09:13 +02:00
Tit Petric
ea03b5a1ec upd(vendor): update database profiler 2018-07-17 12:05:16 +02:00
Tit Petric
04154f97f7 add(vendor): import namsral/flag 2018-07-17 11:31:28 +02:00
Tit Petric
70fcdb1f42 make dep.update 2018-07-13 13:29:50 +02:00
Denis Arh
fca62c8f5f Add .env file reading capabilties and ability to config sam via env variables
For dsn & addr: explicit config via flag has priority over env variables. Final failsafe is hardcoded default values

Env variables:
 - SAM_DB_DSN
 - SAM_HTTP_ADDR
2018-07-12 17:36:54 +02:00
Tit Petric
2b68799544 update vendor, add types dependency for json data 2018-07-05 14:07:18 +00:00
Tit Petric
2892ef818d configure actual sql connections as they should be 2018-07-05 11:17:02 +02:00
Tit Petric
f5233246b0 import updated vendor with grpc/protoc imports 2018-06-08 18:56:47 +02:00
Tit Petric
2751cc33f7 import vendor 2018-06-03 20:26:47 +02:00