Miroslav Šedivý
691150900b
Temporary websocket disconnect handling ( #6 )
...
* fix websocket close log error.
* logger session interface no pointer.
* websocket delayet disconnect.
* session host: save id not pointer to a session.
* fix if hostId not stored.
2022-08-26 20:16:40 +02:00
Miroslav Šedivý
babddacbf3
Go generics and changes in v1.18 ( #5 )
...
* ArrayIn to use generics.
* interface{} -> any.
2022-07-28 12:20:20 +02:00
Miroslav Šedivý
3cd59b9f30
rename module name from gitlab to github.
2022-07-14 22:10:41 +02:00
Miroslav Šedivý
2bf83f6217
add metrics to config.
2022-07-04 18:26:29 +02:00
Miroslav Šedivý
bf47e5a8d0
cleanup.
2022-07-04 18:23:35 +02:00
Miroslav Šedivý
8f83089c8e
move to /health and exclude metrics from logging.
2022-07-04 18:09:47 +02:00
Miroslav Šedivý
ef7e9b1a53
move metrics to /metrics.
2022-06-14 22:34:51 +00:00
Miroslav Šedivý
0952be6a94
add chi metrics middleware.
2022-06-15 00:22:27 +02:00
Maksim Dorokhin
f447cabe2e
add patch method to router.
2022-04-14 08:47:47 +00:00
Miroslav Šedivý
8593d2d0fd
move shared code to pkg.
2022-03-20 11:43:00 +01:00
Miroslav Šedivý
94c17e9a42
rename module to gitlab.com/demodesk/neko/server.
2022-03-20 11:27:41 +01:00
Miroslav Šedivý
89ba775a71
add pprof.
2022-02-12 20:22:50 +01:00
Miroslav Šedivý
31eb743a5d
fix static server response code.
2021-09-20 00:19:33 +02:00
Miroslav Šedivý
e95cc99ea2
fix whitespaces.
2021-09-20 00:19:10 +02:00
Miroslav Šedivý
f96466b7b9
websocket upgrade as router handler.
2021-09-18 14:59:15 +02:00
Miroslav Šedivý
6bd46b438e
exclude healthcheck from logs.
2021-09-17 20:35:41 +02:00
Miroslav Šedivý
c2d2557704
http logger add panic.
2021-09-17 20:20:10 +02:00
Miroslav Šedivý
6026ab8a27
log http panic.
2021-09-17 19:37:09 +02:00
Miroslav Šedivý
7e548ec00a
logger wrap zerolog.
2021-09-17 19:27:21 +02:00
Miroslav Šedivý
fb6042ada1
do not export router context.
2021-09-17 19:23:04 +02:00
Miroslav Šedivý
fe84e218e6
logger use chi's middleware.
2021-09-17 19:22:49 +02:00
Miroslav Šedivý
5688be80ba
fix logger.
2021-09-17 00:58:50 +02:00
Miroslav Šedivý
8d0fcbde70
use custom logger.
2021-09-17 00:58:50 +02:00
Miroslav Šedivý
5a7cdd31fe
http refactor.
2021-09-17 00:24:33 +02:00
Miroslav Šedivý
4fa11e6a2a
refactor HTTP error.
2021-09-16 20:16:51 +02:00
Miroslav Šedivý
d7671942a6
code fmt change.
2021-09-02 21:37:24 +02:00
Miroslav Šedivý
7e2f173460
unify shutdown logs.
2021-09-02 00:00:29 +02:00
Miroslav Šedivý
530cc04805
http use config.
2021-08-29 15:40:58 +02:00
Miroslav Šedivý
ec18775e26
change error messages punctuation.
2021-04-24 21:37:43 +02:00
Miroslav Šedivý
52e586790e
fix static files serving Path.
2021-03-21 21:42:53 +01:00
Miroslav Šedivý
e4d82673da
fix 401 and 403 texts.
2021-03-21 21:32:52 +01:00
Miroslav Šedivý
0eef9d4d98
update auth middlewares.
2021-03-21 21:26:53 +01:00
Miroslav Šedivý
5a79212b32
add healthcheck.
2021-03-19 15:04:01 +01:00
Miroslav Šedivý
58d029f455
WS upgrade no returning error.
2021-03-16 10:45:22 +01:00
Miroslav Šedivý
4a28307c1e
session profile decoupled.
2021-03-14 00:45:51 +01:00
Miroslav Šedivý
dafebc79e5
memberState -> sessionState.
2021-03-13 23:42:16 +01:00
Miroslav Šedivý
c6a183f766
set AllowCredentials to true.
2021-03-01 18:20:17 +01:00
Miroslav Šedivý
2b693f4e52
fix naming convention.
2021-02-14 17:11:21 +01:00
Miroslav Šedivý
45679f1b86
format Go source code.
2021-02-14 14:40:17 +01:00
Miroslav Šedivý
57ed35552f
websocket in api scope.
2021-01-29 23:02:29 +01:00
Miroslav Šedivý
d30d6deb79
add CORS.
2021-01-23 18:18:14 +01:00
Miroslav Šedivý
afd3dd2f56
generate screenshot using Xlib.
2021-01-21 20:44:09 +01:00
Miroslav Šedivý
fc6997d2ac
lint fix.
2021-01-08 22:41:37 +01:00
Miroslav Šedivý
245c3d9635
add CanHostOnly.
2020-12-29 22:00:28 +01:00
Miroslav Šedivý
123fbd8317
IsAdmin + IsConnected.
2020-12-02 16:49:51 +01:00
Miroslav Šedivý
c4978ba376
http response name convention.
2020-11-28 15:00:21 +01:00
Miroslav Šedivý
0dab2a99d3
introduce REST API authorization.
2020-11-16 19:37:52 +01:00
Miroslav Šedivý
40b986c8be
use Chi Router instead of Chi Mux.
2020-11-14 18:16:25 +01:00
Miroslav Šedivý
dd8867615e
fix naming convention.
2020-11-13 17:34:53 +01:00
Miroslav Šedivý
e4864b095e
http listening not warning.
2020-11-07 20:12:37 +01:00