ing
This commit is contained in:
parent
47d4bc7749
commit
d581075198
|
@ -38,8 +38,8 @@
|
|||
}
|
||||
},
|
||||
"servlets": {
|
||||
"web": {
|
||||
"entry": "/web",
|
||||
"auth": {
|
||||
"entry": "/auth",
|
||||
"socket": {
|
||||
"maxMessageSize": 8192,
|
||||
"writeTimeout": 0,
|
||||
|
@ -50,8 +50,20 @@
|
|||
"binaryMessage": false
|
||||
}
|
||||
},
|
||||
"file": {
|
||||
"entry": "/file",
|
||||
"probe": {
|
||||
"entry": "/probe",
|
||||
"socket": {
|
||||
"maxMessageSize": 8192,
|
||||
"writeTimeout": 0,
|
||||
"readTimeout": 0,
|
||||
"pongTimeout": 60,
|
||||
"pingTimeout": 10,
|
||||
"pingPeriod": 10,
|
||||
"binaryMessage": false
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"entry": "/data",
|
||||
"socket": {
|
||||
"maxMessageSize": 8192,
|
||||
"writeTimeout": 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package noauth
|
||||
package auth
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Name = "noauth"
|
||||
Name = "auth"
|
||||
)
|
||||
|
||||
var (
|
|
@ -1,4 +1,4 @@
|
|||
package noauth
|
||||
package auth
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package noauth
|
||||
package auth
|
||||
|
||||
import (
|
||||
"git.loafle.net/commons_go/websocket_fasthttp/websocket"
|
||||
|
@ -30,5 +30,3 @@ func (sh *SubscriberHandlers) OnSubscribe(channel string, message oos.SubscribeM
|
|||
func (sh *SubscriberHandlers) Validate() {
|
||||
sh.SubscriberHandlers.Validate()
|
||||
}
|
||||
|
||||
|
|
@ -1,21 +1,18 @@
|
|||
package servlet
|
||||
|
||||
|
||||
import (
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
"git.loafle.net/overflow/overflow_gateway_probe/servlet/auth"
|
||||
"git.loafle.net/overflow/overflow_gateway_probe/servlet/data"
|
||||
"git.loafle.net/overflow/overflow_gateway_probe/servlet/noauth"
|
||||
"git.loafle.net/overflow/overflow_gateway_probe/servlet/probe"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
)
|
||||
|
||||
|
||||
func ServletInit(sh oogws.ServerHandler) {
|
||||
data.ServletInit(sh)
|
||||
noauth.ServletInit(sh)
|
||||
auth.ServletInit(sh)
|
||||
probe.ServletInit(sh)
|
||||
data.ServletInit(sh)
|
||||
}
|
||||
|
||||
|
||||
func ServletDestroy() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user