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