ing
This commit is contained in:
parent
63fa257178
commit
ca8f32c51b
|
@ -1,10 +1,8 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
csgw "git.loafle.net/commons/server-go/socket/web"
|
|
||||||
"git.loafle.net/commons/server-go"
|
"git.loafle.net/commons/server-go"
|
||||||
"net"
|
csgw "git.loafle.net/commons/server-go/socket/web"
|
||||||
ogeg "git.loafle.net/overflow/gateway/external/grpc"
|
ogeg "git.loafle.net/overflow/gateway/external/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -25,15 +23,6 @@ func (sh *ServerHandlers) Init(serverCtx server.ServerCtx) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sh *ServerHandlers) Listener(serverCtx server.ServerCtx) (net.Listener, error) {
|
|
||||||
l, err := net.Listen("tcp", "192.168.1.103:44449")
|
|
||||||
if nil != err {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return l, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (sh *ServerHandlers) Destroy(serverCtx server.ServerCtx) {
|
func (sh *ServerHandlers) Destroy(serverCtx server.ServerCtx) {
|
||||||
ogeg.DestroyPackage()
|
ogeg.DestroyPackage()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user