Documentation ¶
Index ¶
- func NewClient(ctx *context.T, opts ...rpc.ClientOpt) rpc.Client
- func RequestID(ctx *context.T) uuid.UUID
- func WithNewDispatchingServer(ctx *context.T, name string, dispatcher rpc.Dispatcher, ...) (*context.T, rpc.Server, error)
- func WithNewServer(ctx *context.T, name string, object interface{}, ...) (*context.T, rpc.Server, error)
- func WithRequestID(ctx *context.T, requestID uuid.UUID) *context.T
- type IdleConnectionExpiry
- type PreferredProtocols
- type PreferredServerResolveProtocols
- type ReservedNameDispatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithNewServer ¶
Types ¶
type IdleConnectionExpiry ¶
IdleConnectionExpiry is the amount of the time after which the connection cache will close idle connections.
func (IdleConnectionExpiry) RPCClientOpt ¶
func (IdleConnectionExpiry) RPCClientOpt()
func (IdleConnectionExpiry) RPCServerOpt ¶
func (IdleConnectionExpiry) RPCServerOpt()
type PreferredProtocols ¶
type PreferredProtocols []string
PreferredProtocols instructs the Runtime implementation to select endpoints with the specified protocols when a Client makes a call and to order them in the specified order.
func (PreferredProtocols) RPCClientOpt ¶
func (PreferredProtocols) RPCClientOpt()
type PreferredServerResolveProtocols ¶
type PreferredServerResolveProtocols []string
This option is used to sort and filter the endpoints when resolving the proxy name from a mounttable.
func (PreferredServerResolveProtocols) RPCServerOpt ¶
func (PreferredServerResolveProtocols) RPCServerOpt()
type ReservedNameDispatcher ¶
type ReservedNameDispatcher struct {
Dispatcher rpc.Dispatcher
}
ReservedNameDispatcher specifies the dispatcher that controls access to framework managed portion of the namespace.
func (ReservedNameDispatcher) RPCServerOpt ¶
func (ReservedNameDispatcher) RPCServerOpt()
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Command benchmark runs the benchmark client.
|
Command benchmark runs the benchmark client. |
benchmarkd
Command benchmarkd runs the benchmark server.
|
Command benchmarkd runs the benchmark server. |
Command stress is a tool to stress/load test RPC by issuing randomly generated requests.
|
Command stress is a tool to stress/load test RPC by issuing randomly generated requests. |
mtstress
Usage:
|
Usage: |
stressd
Command stressd runs the stress-test server.
|
Command stressd runs the stress-test server. |
package test contains test for rpc code that do not rely on unexposed rpc declarations.
|
package test contains test for rpc code that do not rely on unexposed rpc declarations. |
Click to show internal directories.
Click to hide internal directories.