client

package
v0.0.0-...-8dfb25f Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 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 Client

type Client struct {
	RPC  *rpc.Client
	GRPC *grpc.Client
}

Client is a wrapper for various clients.

func NewClient

func NewClient(rpcURL string, grpcURL string) (*Client, error)

NewClient creates a new Client with the given configuration.

func (*Client) GetGRPCClient

func (c *Client) GetGRPCClient() *grpc.Client

GetGRPCClient returns GRPC client.

func (*Client) GetRPCClient

func (c *Client) GetRPCClient() *rpc.Client

GetRPCClient returns RPC client.

func (Client) Stop

func (c Client) Stop() error

Stop defers the node stop execution to the RPC and GRPC clients.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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