Denis Arh
e348b3e2f4
Remove User from SAM, refactor service initialization
2018-09-17 06:41:18 +02:00
Denis Arh
5bc9745106
Expanding ws payload names, some code cleanup
2018-09-14 20:16:52 +02:00
Denis Arh
f9a5047a03
Always fetch messages in desceding order
2018-09-14 20:16:52 +02:00
Tit Petric
639891c5ed
fix(sam): undeclared parameter for channel join
2018-09-13 14:50:55 +02:00
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
91db6b37f7
Merge branch 'master' of ssh://github.com/crusttech/crust
2018-09-12 10:55:48 +02:00
Denis Arh
55aa5726f2
Stricter message types with MessageType* constants
2018-09-11 23:34:03 +02:00
Denis Arh
c4875688eb
Attachment serving
2018-09-11 23:34:03 +02:00
Tit Petric
d31d0595da
add(sam): example usage of an events broadcast
2018-09-11 20:47:07 +02:00
Tit Petric
48d47b95e8
upd(sam): refactor pubsub api
2018-09-11 20:35:45 +02:00
Tit Petric
cef9af9903
upd(sam): refactor pubsub, housekeeping
2018-09-11 20:17:26 +02:00
Tit Petric
33bdf429a5
upd(sam): refactor pubsub to repository
2018-09-11 18:12:41 +02:00
Tit Petric
3e3af76b65
upd(sam): configs refactor
2018-09-11 17:50:29 +02:00
Tit Petric
dfd9985552
upd(config): add pubsub and websocket, singletons
2018-09-11 17:49:56 +02:00
Denis Arh
b04a681d81
Attachment serving
2018-09-10 12:25:36 +02:00
Denis Arh
e351c73a0a
Serve attachment info alongside with message (rest & ws)
2018-09-09 13:09:56 +02:00
Denis Arh
0400451823
Add upload/attachment capabilities
2018-09-08 22:04:36 +02:00
Tit Petric
6fafd2e740
upd(crm,sam): update auth pkg usage
2018-09-04 15:38:48 +02:00
Tit Petric
ffa5f9995d
upd(all): return error on parsing json body
2018-09-04 10:13:37 +02:00
Tit Petric
ec2213bf61
fix(crm,sam): vars come through path, get, post
2018-09-04 09:45:19 +02:00
Denis Arh
5befc50a95
Subscribe user to the channel he just created
2018-09-03 08:27:37 +02:00
Denis Arh
4f6bf888bb
Parse JSON from request payload only when is set to
2018-09-03 07:14:53 +02:00
Tit Petric
33887f5859
upd(all): error handling reading json request body
2018-09-02 22:39:15 +02:00
Tit Petric
29c9a8621b
add(crm,sam): parseJSONText util func
2018-09-02 22:38:38 +02:00
Tit Petric
6e3ae267be
upd(all): json parsers of request body
2018-09-02 21:35:20 +02:00
Tit Petric
4e4670ff40
upd(all): close request bodies
2018-09-02 21:33:39 +02:00
Tit Petric
82ffea3f1d
upd(sam, crm): updates for new sigctx package
2018-09-02 20:14:14 +02:00
Denis Arh
2a55cc54c5
Moved CORS handler 1 level lower to catch all requests
...
Prior this, we failed to set CORS on invalid and expired JWT
2018-09-02 15:43:13 +02:00
Denis Arh
9707da5799
Update mocks to fix failing unit tests
2018-09-02 15:20:03 +02:00
Denis Arh
247d5d119a
Lowcase path for sigctx pkg
2018-09-02 15:18:34 +02:00
Denis Arh
c053ea51de
Set current user as message creator
2018-08-31 10:39:21 +02:00
Tit Petric
0c43a6a9ea
ws(all): moving some code around
2018-08-29 18:07:45 +02:00
Tit Petric
f5c3c4184b
upd(crm): define service interfaces in service pkg
2018-08-29 17:56:08 +02:00
Tit Petric
fe2e97105f
upd(all): new handlers/requests structure
2018-08-29 17:22:31 +02:00
Tit Petric
4dc7f1a2f9
add(all): metrics exporter for prometheus
2018-08-27 15:48:37 +02:00
Tit Petric
daf92fd947
fix(all): resolve go critic issues
2018-08-27 13:55:48 +02:00
Denis Arh
257219d5f5
Asertized SAM tests
2018-08-24 12:05:23 +02:00
Tit Petric
a830b93bc7
upd(all): new config options
2018-08-23 12:06:47 +00:00
Tit Petric
dbad271e95
fix(crm, sam): empty flags fix
2018-08-23 10:21:56 +00:00
Tit Petric
16cc7a11f3
upd(all): restructure cmd, flags, startups
2018-08-23 11:15:23 +02:00
Tit Petric
a46b4fbf93
upd(sam): pubsub events with redis option
2018-08-21 13:05:08 +02:00
Tit Petric
8265d4f3c3
add(sam): import pubsub service
2018-08-21 13:04:14 +02:00
Tit Petric
af3a677ffb
upd(sam tests): use namsral flag
2018-08-15 20:38:32 +02:00
Tit Petric
9959ce8fba
fix(sam): go vet fix for ptr receiver
2018-08-15 18:15:12 +02:00
Denis Arh
d50eefba9f
Fix (missing comma
2018-08-08 12:58:43 +02:00
Denis Arh
a140eea1ba
Fix broken messages & logic for del/undel/arch/unarch
2018-08-07 21:50:59 +02:00
Denis Arh
79ca22b9a8
Use id instead of cid in JSON fields for incomming messages
2018-08-07 21:31:44 +02:00
Denis Arh
72ac78bca7
Output @<userid> in channel change-log messages
2018-08-07 21:31:18 +02:00
Denis Arh
636d2c05c7
Support for channel add through WS
2018-08-07 21:11:42 +02:00
Denis Arh
f61b706559
Implements lst of users + active state
2018-08-07 19:35:14 +02:00