RPCClient

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconnectRPCClient

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

func NewClient

func NewClient(protocol, address string) *ReconnectRPCClient

func (*ReconnectRPCClient) Call

func (rpcClient *ReconnectRPCClient) Call(serviceMethod string, args interface{}, reply interface{}) (err error)

Call makes RPC call to the remote endpoint using the default codec, namely encoding/gob.

func (*ReconnectRPCClient) Close

func (rpcClient *ReconnectRPCClient) Close() error

Close closes the underlying socket file descriptor.

Jump to

Keyboard shortcuts

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