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
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
5befc50a95
Subscribe user to the channel he just created
2018-09-03 08:27:37 +02: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
9959ce8fba
fix(sam): go vet fix for ptr receiver
2018-08-15 18:15:12 +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
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
Denis Arh
94aed69d37
Move EventQueueItem under types package
2018-08-05 23:35:55 +02:00
Denis Arh
80f1c78eed
Rename WS session files
2018-08-05 23:32:55 +02:00
Denis Arh
baae815899
Implement event loop
2018-08-05 22:14:45 +02:00
Tit Petric
463afa77d0
upd(websocket): clean up main loop, expect encoded payloads
2018-07-30 00:38:06 +02:00
Tit Petric
0b8b11555a
rename to fit structure
2018-07-30 00:15:09 +02:00
Denis Arh
5a347dddb5
Types structs reduced & simplified
2018-07-29 16:37:41 +02:00
Denis Arh
a5df66e5e1
Setting channel topic & renaming
2018-07-29 02:05:32 +02:00
Denis Arh
99eac17751
Add created/updated fields for new & updated messages
2018-07-29 01:19:42 +02:00
Denis Arh
66d7cd7193
Add connected/disconnected messages
2018-07-29 01:06:36 +02:00
Denis Arh
34bf58d5b1
Simplify outgoing message encoding with json.Marshaler
2018-07-29 01:03:44 +02:00
Denis Arh
926005d2cc
Rework channel-related commants, sending messages
2018-07-28 17:49:41 +02:00
Denis Arh
4e215e64d3
Improve websocket request handling (value of a concret request instead of ptr to payload)
...
Each request handler (eg channelJoin()) now takes a specific params as a value (eg incoming.ChannelJoin)
2018-07-28 14:32:15 +02:00
Denis Arh
99d38e5068
Fix vet issues
2018-07-28 12:20:55 +02:00
Denis Arh
99401065a7
Add channel to delete message
2018-07-28 11:20:44 +02:00
Denis Arh
52dbc4c0c3
Fix naming (Id -> ID), add names to interface arguments
2018-07-26 20:29:09 +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
faeec5e21d
upd(websocket): implement more websocket apis, structs
2018-07-26 00:06:52 +02:00
Tit Petric
76d93e3a76
upd(sam/websocket): general cleanup re: dispatch, prepare byte send to not re-encode msgs
2018-07-25 19:28:56 +02:00
Tit Petric
ddbe9ce952
upd(sam): larger refactor of field names, websocket pkg layout
...
- renamed all fields with Id to ID
- fixed spec file syntax error
- fix bindings for Team API url parameters
- change layout of websocket types->outgoing msg converter
- regenerate full codegen
2018-07-25 18:07:56 +02:00
Denis Arh
d0ea82b683
Add WebSocket basic comm
2018-07-25 13:20:02 +02:00
Tit Petric
60b7f712b6
import some websocket groundwork
2018-07-19 20:19:57 +02:00