rpc/client/client_handler.go
crusader afd49dd0dc ing
2017-11-29 18:55:24 +09:00

24 lines
473 B
Go

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()
}