client

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountClient added in v0.1.2

func NewAccountClient(conn *grpc.ClientConn) *accountClient

func NewBlockClient

func NewBlockClient(conn *grpc.ClientConn) *blockClient

func NewChainClient

func NewChainClient(conn *grpc.ClientConn) *chainClient

func NewEventClient added in v0.1.2

func NewEventClient(conn *grpc.ClientConn) *eventClient

func NewHeightClient added in v0.1.2

func NewHeightClient(conn *grpc.ClientConn) *heightClient

func NewStakingClient added in v0.1.2

func NewStakingClient(conn *grpc.ClientConn) *stakingClient

func NewValidatorClient added in v0.5.0

func NewValidatorClient(conn *grpc.ClientConn) *validatorClient

func NewValidatorPerformanceClient added in v0.1.2

func NewValidatorPerformanceClient(conn *grpc.ClientConn) *validatorPerformanceClient

Types

type AccountClient added in v0.1.2

type AccountClient interface {
	GetIdentity(string) (*accountpb.GetIdentityResponse, error)
	GetByHeight(string, int64) (*accountpb.GetByHeightResponse, error)
}

type BlockClient

type BlockClient interface {
	GetByHeight(int64) (*blockpb.GetByHeightResponse, error)
}

type ChainClient

type ChainClient interface {
	//Queries
	GetHead() (*chainpb.GetHeadResponse, error)
	GeStatus() (*chainpb.GetStatusResponse, error)
	GeMetaByHeight(int64) (*chainpb.GetMetaByHeightResponse, error)
}

type Client

type Client struct {
	Chain                ChainClient
	Account              AccountClient
	Block                BlockClient
	Height               HeightClient
	Transaction          TransactionClient
	ValidatorPerformance ValidatorPerformanceClient
	Staking              StakingClient
	Event                EventClient
	Validator            ValidatorClient
	// contains filtered or unexported fields
}

func New

func New(connStr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type EventClient added in v0.1.2

type EventClient interface {
	GetByHeight(int64) (*eventpb.GetByHeightResponse, error)
}

type HeightClient added in v0.1.2

type HeightClient interface {
	GetAll(int64) (*heightpb.GetAllResponse, error)
}

type StakingClient added in v0.1.2

type StakingClient interface {
	GetByHeight(int64) (*stakingpb.GetByHeightResponse, error)
}

type TransactionClient

type TransactionClient interface {
	GetByHeight(int64) (*transactionpb.GetByHeightResponse, error)
}

func NewTransactionClient

func NewTransactionClient(conn *grpc.ClientConn) TransactionClient

type ValidatorClient added in v0.5.0

type ValidatorClient interface {
	GetByHeight(int64) (*validatorpb.GetAllByHeightResponse, error)
}

type ValidatorPerformanceClient added in v0.1.2

type ValidatorPerformanceClient interface {
	GetByHeight(int64) (*validatorperformancepb.GetByHeightResponse, error)
}

Jump to

Keyboard shortcuts

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