package client import ( "time" "git.loafle.net/commons_go/rpc" "git.loafle.net/commons_go/rpc/protocol" cuc "git.loafle.net/commons_go/util/context" ) type ClientHandler interface { ClientContext(parent cuc.Context) ClientContext Init(clientCTX ClientContext) error Destroy(clientCTX ClientContext) GetCodec() protocol.ClientCodec GetRPCRegistry() rpc.Registry GetRequestTimeout() time.Duration GetPendingRequests() int GetRequestID() uint64 Validate() }