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
Tit Petric
9bfa4a0554
upd(all): update vendored code
2018-07-29 23:22:36 +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
ab8aaf619b
Add simplistic cli chat helper
2018-07-28 17:50:02 +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
1b06a0ffdb
Implement JWT expiration
2018-07-28 12:16:33 +02:00
Denis Arh
c02fec809f
Redo auth flags
2018-07-28 12:01:33 +02:00
Denis Arh
99401065a7
Add channel to delete message
2018-07-28 11:20:44 +02:00
Denis Arh
d4e6731b1e
Simplified and reduced repository code
2018-07-28 10:04:07 +02:00
Denis Arh
e5a183734e
Makefile cleanup
2018-07-28 09:33:12 +02:00
Denis Arh
3768cddbe7
Update titpetric/factor
2018-07-28 09:03:50 +02:00
Denis Arh
7ec0879169
Add support for removing/adding channel memmbers
2018-07-28 08:58:45 +02:00
Denis Arh
f51033e814
Add channel members/join/part/invite endpoints
2018-07-27 00:16:52 +02:00
Denis Arh
3d6f2165bd
Stabilize SAM repositroy.
...
- aligned repository code, db schema and spec.json
- add (not -short) tests for SAM repository
2018-07-26 23:59:29 +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
13ec17494e
fix(sam): rename mesage to message (typo fix)
2018-07-26 00:06:15 +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
a7a5d0011f
add(make): include gocritic checks with make critic
2018-07-23 17:42:07 +02:00
Tit Petric
6e30992a67
upd(vendor): factory database context, resputil logger
2018-07-23 17:22:10 +02:00
Tit Petric
6aaac36b51
upd(rbac): more tests, go fmt
2018-07-23 15:53:57 +02:00
Tit Petric
b1f8587ebb
add(all): import Apache-2.0 LICENSE
2018-07-23 14:59:42 +02:00
Tit Petric
0333a0bf17
add(makefile): scoped test.rbac target
2018-07-23 14:26:34 +02:00
Tit Petric
51b36d7bc7
upd(rbac): test nested roles, get role info
2018-07-23 14:26:07 +02:00
Tit Petric
978557994f
upd(rbac): update debug level to string
2018-07-23 14:10:27 +02:00
Tit Petric
9273639a69
upd(rbac): import users apis, tests
2018-07-23 14:09:58 +02:00
Tit Petric
bf67bac351
upd(rbac): update api call response types
2018-07-23 14:08:39 +02:00
Tit Petric
f77fb432a6
upd(rbac): full sessions impl and tests
2018-07-23 14:00:35 +02:00
Tit Petric
4d018e16cd
upd(rbac): refactor debug level to info/debug
2018-07-23 13:59:56 +02:00
Denis Arh
01ac832e80
Do not cache build steps for now, do not ignore types folder
2018-07-22 08:58:54 +02:00
Denis Arh
bc4205bff5
Stabilised messages endpoints, connected with message service
2018-07-22 08:58:54 +02:00
Tit Petric
826c5ab7f9
import full test suite
2018-07-20 18:08:10 +02:00
Tit Petric
3ad1363277
upd(rbac): send body, update users api, tests
2018-07-20 12:56:35 +02:00
Tit Petric
00444d168b
add(make): make test with gotest -v -cover
2018-07-20 12:55:51 +02:00
Tit Petric
44be095b3f
fix(codegen): merge parameters from api parent and call
2018-07-20 11:05:58 +02:00
Denis Arh
6a3e38bc2b
Update generated code with new version of spec tool
2018-07-20 10:50:40 +02:00
Denis Arh
78c9d9ae76
Add toolset clean task
2018-07-20 10:49:55 +02:00
Denis Arh
c11a1a74d1
Prevent codegen from doing empty type() when no struct is defined
2018-07-19 22:32:54 +02:00
Denis Arh
031cc24a73
REST API endpoints cleanup
2018-07-19 22:16:51 +02:00
Tit Petric
0954e5c53d
upd(codegen): spec update for nested message apis
2018-07-19 21:00:25 +02:00