ing
This commit is contained in:
parent
cb93d22188
commit
8e6981767b
|
@ -11,13 +11,13 @@ import (
|
||||||
cuc "git.loafle.net/commons_go/util/context"
|
cuc "git.loafle.net/commons_go/util/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewServlet(sh ServletHandler) RPCServlet {
|
func NewServlet(sh ServletHandler) Servlet {
|
||||||
return &rpcServlet{
|
return &rpcServlet{
|
||||||
sh: sh,
|
sh: sh,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type RPCServlet interface {
|
type Servlet interface {
|
||||||
Start(parentCTX cuc.Context, conn interface{}, doneChan chan<- error) error
|
Start(parentCTX cuc.Context, conn interface{}, doneChan chan<- error) error
|
||||||
Stop()
|
Stop()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user