member_gateway_rest/server/server-handler.go
crusader 36c1017251 ing
2018-04-06 19:08:38 +09:00

22 lines
374 B
Go

package server
import (
"net"
"git.loafle.net/commons/server-go"
cswf "git.loafle.net/commons/server-go/web/fasthttp"
)
type ServerHandlers struct {
cswf.ServerHandlers
}
func (sh *ServerHandlers) Listener(serverCtx server.ServerCtx) (net.Listener, error) {
l, err := net.Listen("tcp", "192.168.1.101:44449")
if nil != err {
return nil, err
}
return l, nil
}