Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockClient ¶
func NewBlockClient(conn *grpc.ClientConn) *blockClient
func NewChainClient ¶
func NewChainClient(conn *grpc.ClientConn) *chainClient
Types ¶
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 Block BlockClient Transaction TransactionClient // contains filtered or unexported fields }
type TransactionClient ¶
type TransactionClient interface {
GetByHeight(int64) (*transactionpb.GetByHeightResponse, error)
}
func NewTransactionClient ¶
func NewTransactionClient(conn *grpc.ClientConn) TransactionClient
Click to show internal directories.
Click to hide internal directories.