rpc

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx *context.T, opts ...rpc.ClientOpt) rpc.Client

func RequestID added in v0.1.14

func RequestID(ctx *context.T) uuid.UUID

func WithNewDispatchingServer

func WithNewDispatchingServer(ctx *context.T,
	name string, dispatcher rpc.Dispatcher,
	settingsPublisher *pubsub.Publisher,
	opts ...rpc.ServerOpt) (*context.T, rpc.Server, error)

func WithNewServer

func WithNewServer(ctx *context.T,
	name string, object interface{}, authorizer security.Authorizer,
	settingsPublisher *pubsub.Publisher,
	opts ...rpc.ServerOpt) (*context.T, rpc.Server, error)

func WithRequestID added in v0.1.14

func WithRequestID(ctx *context.T, requestID uuid.UUID) *context.T

Types

type IdleConnectionExpiry

type IdleConnectionExpiry time.Duration

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

Directories

Path Synopsis
benchmark module
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL