Tit Petric
7bf78fb4e0
upd(all): refactor
...
- moved rbac store and config to internal pkg,
- split auth authenticators to internal pkg,
- add rbac config object to internal/config,
- update package imports and references for auth,
- clean up main with pkg aliases
2018-09-13 12:05:06 +02:00
Tit Petric
33bdf429a5
upd(sam): refactor pubsub to repository
2018-09-11 18:12:41 +02:00
Tit Petric
a23137c14e
fix(auth): resolve error with double registering flags
2018-09-04 15:53:49 +02:00
Tit Petric
bdb0844a48
add(auth): separate webservice for auth
2018-09-04 15:37:43 +02:00
Tit Petric
16cc7a11f3
upd(all): restructure cmd, flags, startups
2018-08-23 11:15:23 +02:00
Tit Petric
4e710855b8
add(cmd/crm): import monitor
2018-08-21 13:02:45 +02:00
Tit Petric
7cd9f99be6
upd(cmd/crm): update with monitor, pprof
2018-08-21 13:02:30 +02:00
Tit Petric
466d90d523
upd(cmd/sam): register pprof after main routes
2018-08-21 13:02:06 +02:00
Tit Petric
0489373ca8
fix(sam): keep canonical sigctx
2018-08-15 14:04:29 +02:00
Denis Arh
baae815899
Implement event loop
2018-08-05 22:14:45 +02:00
Denis Arh
045063dd03
Remove cli chat client
2018-08-05 22:14:45 +02:00
Denis Arh
8889716189
Add capability to terminate SAM server with CTRL+C
2018-08-05 22:14:45 +02:00
Tit Petric
8256270ed7
add(sam):, pprof, goroutine num in expvar
2018-08-03 20:48:46 +02:00
Tit Petric
dd2f377a48
upd(sam): update monitor, add new fields, restructure
2018-08-03 19:16:12 +02:00
Tit Petric
0dd0b44d96
add(sam): basic memory/goroutine monitor
2018-08-03 17:59:00 +02:00
Denis Arh
a5df66e5e1
Setting channel topic & renaming
2018-07-29 02:05:32 +02:00
Denis Arh
34bf58d5b1
Simplify outgoing message encoding with json.Marshaler
2018-07-29 01:03:44 +02:00
Denis Arh
ab8aaf619b
Add simplistic cli chat helper
2018-07-28 17:50:02 +02:00
Denis Arh
c02fec809f
Redo auth flags
2018-07-28 12:01:33 +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
5ad2b6af51
upd(sam): print route debug in main
2018-07-19 20:21:36 +02:00
Tit Petric
73c27f6bdd
upd(sam main): pass flags in main, add ws routes
2018-07-19 20:21:18 +02:00
Tit Petric
4d67bd66b0
upd(flags): configure from main fn not flags.go
2018-07-19 20:20:43 +02:00
Tit Petric
80f9e9b9bc
upd(all): use factory.Database.MustGet over .Get
2018-07-17 18:23:02 +02:00
Tit Petric
f450bdaba6
upd(main): keep go-spew sticky in vendor
2018-07-17 18:10:38 +02:00
Tit Petric
2b9903701a
upd(main): restructure flags
2018-07-17 11:32:00 +02:00
Tit Petric
5a49d7f64f
Merge branch 'master' of https://github.com/crusttech/crust
2018-07-17 11:10:55 +02:00
Tit Petric
5c6d05b9ff
update(all): use namsral/flag in main
2018-07-17 11:09:06 +02:00
Denis Arh
43d11428fe
Make CRM configurable through .env and part of realize config
2018-07-17 10:52:01 +02:00
Tit Petric
5aae6e9001
upd(all): move rest implementation into subpkg
2018-07-16 00:35:01 +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
2892ef818d
configure actual sql connections as they should be
2018-07-05 11:17:02 +02:00
Tit Petric
9eeffef679
rename import paths
2018-07-05 10:44:14 +02:00
Tit Petric
a21de65eb4
import crm entry point
2018-07-01 01:46:37 +02:00
Tit Petric
5e617c76fb
import main app, dep files
2018-06-03 20:27:00 +02:00