3
0

18 Commits

Author SHA1 Message Date
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