Jannis Mattheis
a9249bbd28
Don't use id provided from POST /message api
2020-06-23 18:39:43 +02:00
Jannis Mattheis
7b90b8a8f5
Use v2 in package path
2020-05-08 10:43:17 +02:00
Jannis Mattheis
0a7a5cd619
Add logging to websocket errors
2019-11-28 21:39:47 +01:00
Jannis Mattheis
81c4a73df3
Add health api
2019-08-16 09:28:57 +02:00
饺子w
67493c643e
Return 500 server error on database failures ( #191 )
2019-05-25 08:37:24 +02:00
GianOrtiz
e32359ed15
Add update client api and dialog ( #164 )
2019-03-16 11:18:51 +01:00
饺子w
efcf4ad13d
Use crypto/rand for token generation ( #161 )
2019-03-16 11:10:28 +01:00
饺子w
178c76f410
Fix websocket allowed origin ( #150 )
2019-03-14 18:16:24 +01:00
Jannis Mattheis
5c5965f2fd
Log web socket errors
2019-03-07 18:29:46 +01:00
饺子w
2fa395cb84
Prevent removing last admin ( #130 )
2019-02-26 18:46:42 +01:00
饺子w
ec5b1f8c30
Support reverse proxy with path rewrite ( #127 )
2019-02-13 18:47:48 +01:00
Jannis Mattheis
a1204a57f8
Fix id in plugins
2019-02-09 13:26:02 +01:00
eternal-flame-AD
e5b24f4c92
Add plugin feature
...
Fixed database migration
Added a plugin system based on the go plugin package
2019-02-09 12:52:01 +01:00
eternal-flame-AD
de09aae987
add extras to message model
2019-02-02 13:06:30 +01:00
Jannis Mattheis
68b160997d
Format all go files
2019-01-01 23:34:42 +01:00
Eugene Gavrilov
b5b2f19dc2
[ #23 ] Fix check same origin function
2018-12-12 21:30:59 +01:00
Jannis Mattheis
ec2c3da9d4
Add summary for updateApp and uploadImg api
2018-11-24 11:31:32 +01:00
Jannis Mattheis
76ca344b77
Make security more compact
2018-11-24 11:31:32 +01:00
Jannis Mattheis
9e7859c36c
Add missing bad request / not found definitions
2018-11-24 11:31:32 +01:00
Jannis Mattheis
dfb71dabbc
Make produce/consumes more compact
2018-11-24 11:31:32 +01:00
Jannis Mattheis
c841e1cd24
Move swagger comments to api
2018-11-24 11:31:32 +01:00
Eugene Gavrilov
4a6863eda2
[ #69 ] add end-point for update application name and description
2018-11-23 21:39:07 +01:00
Jannis Mattheis
ee723918f9
Add once test
2018-11-22 20:59:29 +01:00
Jannis Mattheis
79e1dc9c9a
Prevent deadlock on stream.Close()
...
GR = goroutine
[GR#1] http server gets closed
[GR#2] client.NotifyClose() will be executed
[GR#2] client.once.Do will be executed (lock's client.once.m)
[GR#1] stream.Close will be executed (lock's stream.lock)
[GR#1] client.Close will be executed (waits for client.once.m)
[GR#2] stream.remove will be executed (waits for stream.lock)
GR#1 holds lock stream.lock and waits for client.once.m
GR#2 holds lock client.once.m and waits for stream.lock
We prevent the deadlock with releasing the client.once.m lock earlier.
2018-11-22 20:59:29 +01:00
Jannis Mattheis
a992bc1506
Prevent possible race condition on SetPingHandler
...
conn.ReadMessage and conn.SetPingHandler are executed
in different goroutines.
2018-11-22 20:59:29 +01:00
Eugene Gavrilov
0ca18b817c
[ #71 ] Make title in message not necessary field
2018-11-14 20:05:24 +01:00
Jannis Mattheis
80eec6ae3a
Remove monkey dependency
2018-11-06 21:38:15 +01:00
Jannis Mattheis
39a3d46607
[ #34 ] Adjust message api to be paged
2018-04-13 18:56:11 +02:00
Jannis Mattheis
1262f43846
Close web socket connection on delete user
2018-04-02 12:35:16 +02:00
Jannis Mattheis
6954fb5adf
Close web socket connection on delete client
2018-04-02 12:35:16 +02:00
Jannis Mattheis
13d9350f6d
Delete image on update and delete application & check for existing name
2018-03-31 18:44:49 +02:00
Jannis Mattheis
61d5fc59a7
Add UploadApplicationImage API
2018-03-31 18:44:49 +02:00
Jannis Mattheis
a6ff23944d
Remove unused method
2018-03-25 19:33:29 +02:00
Jannis Mattheis
0f2e7cf5e2
Use gofmt -s
2018-03-25 19:33:29 +02:00
Jannis Mattheis
317bb1cb3e
Remove mock & Use database util in user api
2018-03-25 19:33:29 +02:00
Jannis Mattheis
b9b98f0ce9
Remove mock & Use database util in token api
2018-03-25 19:33:29 +02:00
Jannis Mattheis
785aa7e5b3
Remove mock & Use database util in message api
2018-03-25 19:33:29 +02:00
Jannis Mattheis
203791c63b
Move password into own package to prevent package cycle
2018-03-25 19:33:29 +02:00
Jannis Mattheis
01c6800ae8
Move stream to api
2018-03-25 19:33:29 +02:00
Jannis Mattheis
9e49849039
Use mode in all tests
2018-03-18 17:29:15 +01:00
Jannis Mattheis
fb972ec9a6
Fix not working Get/DeleteMessagesWithApplication apis
2018-03-11 17:58:44 +01:00
Jannis Mattheis
4078358aaa
Check ownership of app on GetMessagesWithToken
2018-03-11 17:58:44 +01:00
Jannis Mattheis
98df7501f6
Add failing test for getmessages with not owned app
2018-03-11 17:58:44 +01:00
Jannis Mattheis
2d1d68f5ae
Also use helper method in user api
2018-03-11 17:58:44 +01:00
Jannis Mattheis
ec1eb50d0e
Adjust token api to use new app/client id
2018-03-11 17:58:44 +01:00
Jannis Mattheis
6dda2606d4
Adjust message api to use new app/client id
2018-03-11 17:58:44 +01:00
Jannis Mattheis
cb8fb2dfc2
Remove unnecessary code
2018-02-28 20:22:25 +01:00
Jannis Mattheis
db60d2f0e7
Use correct models in user apis
2018-02-28 20:22:25 +01:00
Jannis Mattheis
cda4127551
Make password strength configurable
2018-02-23 19:39:34 +01:00
Jannis Mattheis
9d635b15a6
Add json mapping for ID in client & app
2018-02-18 12:56:42 +01:00