client

package
v0.0.0-...-84bac11 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 5 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 {
	CliCtx *clictx.Client
	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) GetCLIContext

func (c *Client) GetCLIContext() sdkclient.Context

GetCLIContext returns client context for the network.

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