Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultRPCTimeout = 1 * time.Minute
DefaultRPCTimeout - default RPC timeout is one minute.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { // Method to validate first argument of any RPC call. Authenticate() error }
Authenticator - validator of first argument of any RPC call.
type CallRequest ¶
CallRequest - RPC call request parameters.
type CallResponse ¶
CallResponse - RPC call response parameters.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - http based RPC client.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
A Pool is a type-safe wrapper around a sync.Pool.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server - HTTP based RPC server.
func (*Server) RegisterName ¶
RegisterName - registers receiver with given name to handle RPC requests.
Click to show internal directories.
Click to hide internal directories.