rpc/client/client_handler.go
crusader 8e43174376 ing
2017-10-31 18:25:44 +09:00

26 lines
392 B
Go

package client
import (
"time"
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/rpc/protocol"
)
type ClientHandler interface {
OnStart()
OnStop()
GetContentType() string
GetCodec() protocol.ClientCodec
GetRPCRegistry() rpc.Registry
GetRequestTimeout() time.Duration
GetPendingRequests() int
GetRequestID() interface{}
Send()
Validate()
addWrite(cs *CallState)
}