gateway_rest/server/server-handler.go
crusader 9a192c7015 ing
2018-04-06 21:00:01 +09:00

26 lines
428 B
Go

package server
import (
"net"
"git.loafle.net/commons/server-go"
cswf "git.loafle.net/commons/server-go/web/fasthttp"
)
type ServerHandler interface {
cswf.ServerHandler
}
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
}