2018-04-06 13:01:28 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2018-04-09 13:08:22 +00:00
|
|
|
"git.loafle.net/commons/server-go/socket/web"
|
2018-04-06 13:01:28 +00:00
|
|
|
"git.loafle.net/overflow/member_gateway_rpc/servlet"
|
|
|
|
)
|
|
|
|
|
2018-04-09 13:08:22 +00:00
|
|
|
func New() *web.Server {
|
2018-04-06 13:01:28 +00:00
|
|
|
rs := &servlet.RPCServlets{}
|
|
|
|
sh := &ServerHandlers{}
|
|
|
|
sh.RegisterServlet("/webapp", rs)
|
|
|
|
|
2018-04-09 13:08:22 +00:00
|
|
|
s := &web.Server{
|
2018-04-06 13:01:28 +00:00
|
|
|
ServerHandler: sh,
|
|
|
|
}
|
|
|
|
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|