new pubsub with wildcard option
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.log
|
2
go.mod
2
go.mod
@@ -3,7 +3,7 @@ module statusServer
|
|||||||
go 1.24.0
|
go 1.24.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.tecamino.com/paadi/pubSub v1.0.1
|
gitea.tecamino.com/paadi/pubSub v1.0.2
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1
|
||||||
gitea.tecamino.com/paadi/tecamino-json_data v0.1.0
|
gitea.tecamino.com/paadi/tecamino-json_data v0.1.0
|
||||||
gitea.tecamino.com/paadi/tecamino-logger v0.2.1
|
gitea.tecamino.com/paadi/tecamino-logger v0.2.1
|
||||||
|
4
go.sum
4
go.sum
@@ -1,5 +1,5 @@
|
|||||||
gitea.tecamino.com/paadi/pubSub v1.0.1 h1:Of91JAVaiaqXhzFjm+jwSJipPbST+A1WQz1DEEhLQm4=
|
gitea.tecamino.com/paadi/pubSub v1.0.2 h1:9Q9KLTIHRSjxrTkDyuF8mDYOLkI8DjjPNSnoS2GKflY=
|
||||||
gitea.tecamino.com/paadi/pubSub v1.0.1/go.mod h1:SBPTSD/JQWRbwqsSNoSPhV81IDTreP0TMyvLhmK3P2M=
|
gitea.tecamino.com/paadi/pubSub v1.0.2/go.mod h1:SBPTSD/JQWRbwqsSNoSPhV81IDTreP0TMyvLhmK3P2M=
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1 h1:vAq7mwUxlxJuLzCQSDMrZCwo8ky5usWi9Qz+UP+WnkI=
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1 h1:vAq7mwUxlxJuLzCQSDMrZCwo8ky5usWi9Qz+UP+WnkI=
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1/go.mod h1:+tmf1rjPaKEoNeUcr1vdtoFIFweNG3aUGevDAl3NMBk=
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1/go.mod h1:+tmf1rjPaKEoNeUcr1vdtoFIFweNG3aUGevDAl3NMBk=
|
||||||
gitea.tecamino.com/paadi/tecamino-json_data v0.1.0 h1:zp3L8qUvkVqzuesQdMh/SgZZZbX3pGD9NYa6jtz+JvA=
|
gitea.tecamino.com/paadi/tecamino-json_data v0.1.0 h1:zp3L8qUvkVqzuesQdMh/SgZZZbX3pGD9NYa6jtz+JvA=
|
||||||
|
@@ -314,3 +314,23 @@
|
|||||||
{"level":"error","timestamp":"2025-08-23T21:42:26.597","msg":"error on websocket connection: read error (id:234): websocket: close 1006 (abnormal closure): unexpected EOF","caller":"Websocket"}
|
{"level":"error","timestamp":"2025-08-23T21:42:26.597","msg":"error on websocket connection: read error (id:234): websocket: close 1006 (abnormal closure): unexpected EOF","caller":"Websocket"}
|
||||||
{"level":"error","timestamp":"2025-08-23T21:42:26.597","msg":"error on websocket connection: read error (id:238): websocket: close 1006 (abnormal closure): unexpected EOF","caller":"Websocket"}
|
{"level":"error","timestamp":"2025-08-23T21:42:26.597","msg":"error on websocket connection: read error (id:238): websocket: close 1006 (abnormal closure): unexpected EOF","caller":"Websocket"}
|
||||||
{"level":"error","timestamp":"2025-08-23T21:42:27.701","msg":"error on websocket connection: websocket: close sent","caller":"Websocket"}
|
{"level":"error","timestamp":"2025-08-23T21:42:27.701","msg":"error on websocket connection: websocket: close sent","caller":"Websocket"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:09.056","msg":"initialize new server with allowOrigins: * listening on port: 8080","caller":"NewStatusServer"}
|
||||||
|
{"level":"info","timestamp":"2025-08-24T07:54:09.056","msg":"start listening on 0.0.0.0:8080","caller":"ServeHttp"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:09.057","msg":"initialize new PubSubWebsocket service with 5 workers 256 messages","caller":"NewStatusServer"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:09.057","msg":"start publishing runtime metrics (memory + GC count)","caller":"ServeHttp"}
|
||||||
|
{"level":"info","timestamp":"2025-08-24T07:54:09.057","msg":"start listening on 0.0.0.0:8080","caller":"ServeHttp"}
|
||||||
|
{"level":"info","timestamp":"2025-08-24T07:54:09.057","msg":"close server listening on 0.0.0.0:8080","caller":"ServeHttp"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.057","msg":"initialize new client id:adrian to 127.0.0.1:8080","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.059","msg":"set PingHandler","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.059","msg":"set PongHandler","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"start read goroutine","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"start write goroutine","caller":"NewClient"}
|
||||||
|
{"level":"info","timestamp":"2025-08-24T07:54:10.060","msg":"id:adrian connected to 127.0.0.1:8080","caller":"Client"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"initialize new client id:test to 127.0.0.1:8080","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"set PingHandler","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"set PongHandler","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"start read goroutine","caller":"NewClient"}
|
||||||
|
{"level":"debug","timestamp":"2025-08-24T07:54:10.060","msg":"start write goroutine","caller":"NewClient"}
|
||||||
|
{"level":"error","timestamp":"2025-08-24T07:54:21.393","msg":"read json: invalid character ',' after object key","caller":"Websocket"}
|
||||||
|
{"level":"error","timestamp":"2025-08-24T07:54:24.376","msg":"read json: invalid character ',' after object key","caller":"Websocket"}
|
||||||
|
{"level":"error","timestamp":"2025-08-24T07:55:23.374","msg":"error on websocket connection: read error (id:234): websocket: close 1000 (normal)","caller":"Websocket"}
|
||||||
|
Reference in New Issue
Block a user