rpcclient

package
v0.0.0-...-3386ad1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCClient

type RPCClient struct {
	Client     *rpc.Client
	Host       string
	Port       string
	PluginFile string
}

func NewRPCClient

func NewRPCClient(host, port, pluginFile string) *RPCClient

NewRPCClient returns a reference to a `RPCClient`.

func (*RPCClient) Call

func (client *RPCClient) Call(payload string) (string, error)

Call calls the following workflow `StartServer` : `Dial` : `Client.Call`.

func (*RPCClient) Dial

func (client *RPCClient) Dial() error

Dial calls the rpc.Client.Dial function.

func (*RPCClient) StartServer

func (client *RPCClient) StartServer() error

StartServer starts the related RPC route server.

func (*RPCClient) ToString

func (client *RPCClient) ToString() string

ToString returns the string representation of the struct.

Jump to

Keyboard shortcuts

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