Documentation
¶
Index ¶
- type Client
- func (c *Client) GetCurrentHeight(ctx context.Context) (uint64, error)
- func (c *Client) GetMinimumHeight(ctx context.Context) (uint64, error)
- func (c *Client) GetSubnetID(ctx context.Context) (ids.ID, error)
- func (c *Client) GetValidatorSet(ctx context.Context, height uint64) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- type GetCurrentHeightRequest
- type GetCurrentHeightResponse
- type GetMinimumHeightRequest
- type GetMinimumHeightResponse
- type GetSubnetIDRequest
- type GetSubnetIDResponse
- type GetValidatorSetRequest
- type GetValidatorSetResponse
- type Server
- func (s *Server) GetCurrentHeight(ctx context.Context, req interface{}) (interface{}, error)
- func (s *Server) GetMinimumHeight(ctx context.Context, req interface{}) (interface{}, error)
- func (s *Server) GetSubnetID(ctx context.Context, req interface{}) (interface{}, error)
- func (s *Server) GetValidatorSet(ctx context.Context, req interface{}) (interface{}, error)
- type ValidatorOutput
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 a gRPC client for validator operations.
func NewClient ¶
func NewClient(conn interface{}) *Client
NewClient creates a new gRPC validator client.
func (*Client) GetCurrentHeight ¶
GetCurrentHeight returns the current height of the validator set.
func (*Client) GetMinimumHeight ¶
GetMinimumHeight returns the minimum height of the given validator set.
func (*Client) GetSubnetID ¶
GetSubnetID returns the subnet ID of the validator set.
func (*Client) GetValidatorSet ¶
func (c *Client) GetValidatorSet(ctx context.Context, height uint64) (map[ids.NodeID]*validators.GetValidatorOutput, error)
GetValidatorSet returns the validator set at the given height.
type GetCurrentHeightRequest ¶
type GetCurrentHeightRequest struct{}
type GetCurrentHeightResponse ¶
type GetCurrentHeightResponse struct {
Height uint64
}
type GetMinimumHeightResponse ¶
type GetMinimumHeightResponse struct {
Height uint64
}
type GetSubnetIDRequest ¶
type GetSubnetIDRequest struct {
ChainID []byte
}
type GetSubnetIDResponse ¶
type GetSubnetIDResponse struct {
SubnetID []byte
}
type GetValidatorSetRequest ¶
type GetValidatorSetResponse ¶
type GetValidatorSetResponse struct {
Validators []*ValidatorOutput
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a gRPC server for validator operations.
func NewServer ¶
func NewServer(state validators.State) *Server
NewServer creates a new gRPC validator server.
func (*Server) GetCurrentHeight ¶
GetCurrentHeight implements the gRPC server method.
func (*Server) GetMinimumHeight ¶
GetMinimumHeight implements the gRPC server method.
func (*Server) GetSubnetID ¶
GetSubnetID implements the gRPC server method.
type ValidatorOutput ¶
Click to show internal directories.
Click to hide internal directories.