This commit is contained in:
crusader 2017-12-15 18:20:41 +09:00
parent 47d4bc7749
commit d581075198
5 changed files with 26 additions and 19 deletions

View File

@ -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,

View File

@ -1,4 +1,4 @@
package noauth
package auth
import (
"fmt"
@ -10,7 +10,7 @@ import (
)
const (
Name = "noauth"
Name = "auth"
)
var (

View File

@ -1,4 +1,4 @@
package noauth
package auth
import (
"context"

View File

@ -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()
}

View File

@ -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() {
}