member_gateway_rpc/server/server.go
crusader 73b6f9f6bf ing
2018-04-11 23:38:30 +09:00

27 lines
522 B
Go

package server
import (
csgw "git.loafle.net/commons/server-go/socket/web"
"git.loafle.net/overflow/member_gateway_rpc/config"
"git.loafle.net/overflow/member_gateway_rpc/servlet"
)
func New(_config *config.Config) *csgw.Server {
ws := &servlet.WebappServlets{
VerifyKey: _config.VerifyKey,
SignKey: _config.SignKey,
}
sh := &ServerHandlers{
ServerHandlers: *_config.ServerHandler,
Config: _config,
}
sh.RegisterServlet("/webapp", ws)
s := &csgw.Server{
ServerHandler: sh,
}
return s
}