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
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
Denis Arh
bc4205bff5
Stabilised messages endpoints, connected with message service
2018-07-22 08:58:54 +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
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
Tit Petric
bb9fdf3107
upd(sam router): handlers ctor update
2018-07-19 20:26:54 +02:00
Tit Petric
efecfd31b8
Merge branch 'master' of https://github.com/crusttech/crust
2018-07-19 20:24:50 +02:00
Tit Petric
b6481141dd
del(all): remove codegen route debug code
2018-07-19 20:22:11 +02:00
Tit Petric
60b7f712b6
import some websocket groundwork
2018-07-19 20:19:57 +02:00
Denis Arh
ff79246202
Fix codegen template for rest controllers, remove obsolete code
2018-07-19 19:09:07 +02:00
Denis Arh
18d7f4c3bf
SAM messaging, basics
2018-07-19 18:51:43 +02:00
Denis Arh
922cd6af35
Fix govet warning 'composite literal uses unkeyed fields'
2018-07-19 18:50:53 +02:00
Tit Petric
3c0e208e06
del(websocket): move ws out of rest
2018-07-19 16:44:42 +02:00
Tit Petric
2222c53158
upd(generator): add docs from spec files
2018-07-19 16:39:09 +02:00
Tit Petric
80f9e9b9bc
upd(all): use factory.Database.MustGet over .Get
2018-07-17 18:23:02 +02:00
Denis Arh
2a44f1ba1e
Remove panic()
2018-07-17 16:32:48 +02:00
Denis Arh
70a5042db5
SAM types, handlers, services, repositories implemented
2018-07-17 15:24:35 +02:00
Tit Petric
501ba88efc
gofmt
2018-07-17 13:09:31 +02:00
Tit Petric
235574bf42
upd(all): pass context from http request to service bridge
2018-07-17 12:23:57 +02:00
Tit Petric
5aae6e9001
upd(all): move rest implementation into subpkg
2018-07-16 00:35:01 +02:00
Tit Petric
7d11062c3c
add(crm, sam): service layer, subpackages
2018-07-16 00:14:50 +02:00
Tit Petric
837c10e448
update(all): moved codegen to root /codegen
2018-07-13 17:47:05 +02:00
Tit Petric
c01c75f420
add authenticators
2018-07-13 14:22:36 +02:00
Tit Petric
c963dd7a2f
support typed url params, add create handlers
2018-07-13 13:37:55 +02:00
Tit Petric
37f40682ab
update codegen
2018-07-13 13:23:31 +02:00
Tit Petric
0d25af4434
regenerate readme with docs
2018-07-13 13:22:42 +02:00
Tit Petric
e48be7d8e6
update specs
2018-07-13 13:22:10 +02:00
Denis Arh
6676d3a37c
Implement channel CRUD++
...
/channel/remove changed to /channel/delete (pending /channel/:id)
2018-07-12 20:03:47 +02:00
Denis Arh
ae14c23225
Apply new templates (form parsing, db tag) to all structs & requests
2018-07-12 19:35:47 +02:00
Denis Arh
fd8efa0b2a
Always generate db tag (either from dbname or name)
2018-07-12 19:33:24 +02:00
Denis Arh
d7d7ac3208
Add call to ParseForm() to get values from POST payload
2018-07-12 19:18:31 +02:00
Denis Arh
efb42bd036
Extended channel struct to cover all (db) fields
2018-07-12 19:01:49 +02:00
Denis Arh
d4c6020174
Add support for .dbname for struct generator
2018-07-12 19:01:19 +02:00
Denis Arh
2039032dc8
Add /create endpoint, merge /archive & /move with /edit
2018-07-12 18:31:47 +02:00
Denis Arh
b75becd960
Add pointer from chan to the last msg, add messages_queue table
2018-07-11 20:17:19 +02:00
Tit Petric
81b6f2e608
print debug route info on startup, alike gin/debug.
2018-07-10 14:59:05 +00:00