client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 6 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
	Market *market.Client
}

Client is a wrapper for various clients.

func NewClient

func NewClient(rpcURL string, grpcURL string, cmcConfig config.CoinMarketCapConfig) (*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) GetMarketClient

func (c *Client) GetMarketClient() *market.Client

GetMarketClient returns Market client.

func (*Client) GetRPCClient

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

GetRPCClient returns RPC client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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