Documentation
¶
Index ¶
- type Client
- func (c *Client) GetBlockByHash(ctx context.Context, hash []byte) (*pb.GetBlockResponse, error)
- func (c *Client) GetBlockByHeight(ctx context.Context, height uint64) (*pb.GetBlockResponse, error)
- func (c *Client) GetHealth(ctx context.Context) (pb.HealthStatus, error)
- func (c *Client) GetMetadata(ctx context.Context, key string) ([]byte, error)
- func (c *Client) GetNamespace(ctx context.Context) (*pb.GetNamespaceResponse, error)
- func (c *Client) GetNetInfo(ctx context.Context) (*pb.NetInfo, error)
- func (c *Client) GetPeerInfo(ctx context.Context) ([]*pb.PeerInfo, error)
- func (c *Client) GetState(ctx context.Context) (*pb.State, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client for StoreService, P2PService, HealthService, and ConfigService
func (*Client) GetBlockByHash ¶
GetBlockByHash returns the full GetBlockResponse for a block by hash
func (*Client) GetBlockByHeight ¶
GetBlockByHeight returns the full GetBlockResponse for a block by height
func (*Client) GetHealth ¶
GetHealth calls the HealthService.Livez endpoint and returns the HealthStatus
func (*Client) GetMetadata ¶
GetMetadata returns metadata for a specific key
func (*Client) GetNamespace ¶
GetNamespace returns the namespace configuration for this network
func (*Client) GetNetInfo ¶
GetNetInfo returns information about the network
func (*Client) GetPeerInfo ¶
GetPeerInfo returns information about the connected peers
Click to show internal directories.
Click to hide internal directories.