overflow_gateway_probe/servlet/data/data.go
crusader 18845c4ff9 ing
2018-03-22 18:15:12 +09:00

35 lines
662 B
Go

package data
import (
"git.loafle.net/commons_go/logging"
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/config"
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
oosc "git.loafle.net/overflow/overflow_server_config"
)
const (
Name = "data"
)
var (
cfg *oosc.Servlet
)
func ServletInit(sh oogws.ServerHandler) {
cfg = oogwc.Config.Servlets[Name]
if nil == cfg {
logging.Logger().Panicf("Webapp: config of servlet[%s] is not exist", Name)
}
rpcGH := newGatewayRPCHandler()
sh.RegisterRPCGatewayServlet(Name, rpcGH)
//sub := newSubscriberHandler(rpcSH)
//
//sh.RegisterSubscriber(sub)
}
func ServletDestroy() {
}