diff --git a/servlet.go b/servlet.go index e0c6bda..fcebecc 100644 --- a/servlet.go +++ b/servlet.go @@ -11,13 +11,13 @@ import ( cuc "git.loafle.net/commons_go/util/context" ) -func NewServlet(sh ServletHandler) RPCServlet { +func NewServlet(sh ServletHandler) Servlet { return &rpcServlet{ sh: sh, } } -type RPCServlet interface { +type Servlet interface { Start(parentCTX cuc.Context, conn interface{}, doneChan chan<- error) error Stop()