rpc/client/client_handler.go

23 lines
358 B
Go
Raw Normal View History

2017-10-31 09:25:44 +00:00
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{}
Validate()
}