Documentation ¶
Index ¶
- func NewClient(ctx *context.T, opts ...rpc.ClientOpt) rpc.Client
- 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)
- type IdleConnectionExpiry
- type PreferredProtocols
- type PreferredServerResolveProtocols
- type ReservedNameDispatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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: mtstress [flags] <command> The mtstress commands are: mount Measure latency of the Mount RPC at a fixed request rate resolve Measure latency of the Resolve RPC at a fixed request rate help Display help for commands or topics The global flags are: -duration=10s Duration for sending test traffic and measuring latency -rate=1 Rate, in RPCs per second, to send to the test server -reauthenticate=false If true, establish a new authenticated connection for each RPC, simulating load from a distinct process -alsologtostderr=true log to standard error as well as files -log_backtrace_at=:0 when logging hits line file:N, emit a stack trace -log_dir= if non-empty, write log files to this directory -logtostderr=false log to standard error instead of files -max_stack_buf_size=4292608 max size in bytes of the buffer to use for logging stack traces -metadata=<just specify -metadata to activate> Displays metadata for the program and exits.
|
Usage: mtstress [flags] <command> The mtstress commands are: mount Measure latency of the Mount RPC at a fixed request rate resolve Measure latency of the Resolve RPC at a fixed request rate help Display help for commands or topics The global flags are: -duration=10s Duration for sending test traffic and measuring latency -rate=1 Rate, in RPCs per second, to send to the test server -reauthenticate=false If true, establish a new authenticated connection for each RPC, simulating load from a distinct process -alsologtostderr=true log to standard error as well as files -log_backtrace_at=:0 when logging hits line file:N, emit a stack trace -log_dir= if non-empty, write log files to this directory -logtostderr=false log to standard error instead of files -max_stack_buf_size=4292608 max size in bytes of the buffer to use for logging stack traces -metadata=<just specify -metadata to activate> Displays metadata for the program and exits. |
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.