rpcx

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBasePath

func WithBasePath(basePath string) rpcxOption

func WithClientName

func WithClientName(clientName string) rpcxOption

func WithConsulServer

func WithConsulServer(server string) rpcxOption

func WithConsulServers

func WithConsulServers(servers ...string) rpcxOption

func WithJeagerAgentHostPort

func WithJeagerAgentHostPort(JaegeragentHostPort string) rpcxOption

func WithMetaData

func WithMetaData(key, val string) metaDataWarp

func WithOpenTracing

func WithOpenTracing(disable bool) rpcxOption

func WithServerAddress

func WithServerAddress(server string) rpcxOption

func WithServiceName

func WithServiceName(serviceName string) rpcxOption

func WithUseConsulRegistry

func WithUseConsulRegistry(useConsulRegistry bool) rpcxOption

Types

type RpcxClientWithOpt

type RpcxClientWithOpt struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...rpcxOption) (*RpcxClientWithOpt, error)

func (*RpcxClientWithOpt) Broadcast

func (s *RpcxClientWithOpt) Broadcast(ctx context.Context, serviceMethod string, arg interface{}, replay interface{}, metadata ...metaDataWarp) error

func (*RpcxClientWithOpt) Call

func (s *RpcxClientWithOpt) Call(ctx context.Context, serviceMethod string, arg interface{}, replay interface{}, metadata ...metaDataWarp) error

func (*RpcxClientWithOpt) Close

func (s *RpcxClientWithOpt) Close() error

func (*RpcxClientWithOpt) CloseAndShutdownTrace

func (s *RpcxClientWithOpt) CloseAndShutdownTrace() error

func (*RpcxClientWithOpt) GetOnce

func (c *RpcxClientWithOpt) GetOnce() (client.XClient, error)

func (*RpcxClientWithOpt) NewBidirectionalXClient

func (c *RpcxClientWithOpt) NewBidirectionalXClient(ch chan *protocol.Message) (client.XClient, error)

func (*RpcxClientWithOpt) ShutdownTrace

func (s *RpcxClientWithOpt) ShutdownTrace() error

Jump to

Keyboard shortcuts

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