3
0

153 Commits

Author SHA1 Message Date
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
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
3009d20fcc Codegen/spec cleanup (remove struct) 2018-08-05 23:31:03 +02:00
Denis Arh
cd85f1b608 Add support for user creation 2018-08-05 23:23:47 +02:00
Denis Arh
baae815899 Implement event loop 2018-08-05 22:14:45 +02:00
Denis Arh
ce1284f1b3 Cleanup JSON field names for all types 2018-08-05 22:14:45 +02:00
Tit Petric
b8e1cd83cc upd(style): go-critic fixes 2018-08-03 17:17:16 +02:00
Denis Arh
01d8ba54a4 Make repository code consistant (use r.db()) 2018-08-03 16:48:26 +02:00
Denis Arh
8abe6b227f Simplify selects 2018-08-03 16:47:58 +02:00
Denis Arh
136a837e18 Improve service & repo layer, add support for direct messages 2018-08-03 00:04:22 +02:00
Denis Arh
8a2423673b Fix repository tests & transaction handling 2018-07-30 11:48:25 +02:00
Denis Arh
a6e86066f4 Fix repository tests 2018-07-30 08:00:12 +02:00
Denis Arh
af6ba60e6d Mock generator with repository mocks 2018-07-30 06:56:03 +02:00
Denis Arh
baae430adc Refactor repository, add support for transactions 2018-07-30 06:56:03 +02:00