grpc

package
v0.0.0-...-f348377 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns not found status.

Types

type Client

type Client struct {
	tmservice.ServiceClient
	*grpc.ClientConn
}

Client wraps GRPC client connection.

func NewClient

func NewClient(grpcURL string, timeout int64) (*Client, error)

NewClient creates GRPC client.

func (*Client) GetLBlock

func (c *Client) GetLBlock(ctx context.Context) (*tmtype.Block, error)

func (*Client) GetLByBlock

func (c *Client) GetLByBlock(ctx context.Context, block_num int64) (*tmtype.Block, error)

func (*Client) GetLValidatorSet

func (c *Client) GetLValidatorSet(ctx context.Context) ([]*tmservice.Validator, error)

func (*Client) GetSyncInfo

func (c *Client) GetSyncInfo(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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