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) GetSupernetID(ctx context.Context, chainID ids.ID) (ids.ID, error)
- func (c *Client) GetValidatorSet(ctx context.Context, height uint64, supernetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- type Server
- func (s *Server) GetCurrentHeight(ctx context.Context, _ *emptypb.Empty) (*pb.GetCurrentHeightResponse, error)
- func (s *Server) GetMinimumHeight(ctx context.Context, _ *emptypb.Empty) (*pb.GetMinimumHeightResponse, error)
- func (s *Server) GetSupernetID(ctx context.Context, req *pb.GetSupernetIDRequest) (*pb.GetSupernetIDResponse, error)
- func (s *Server) GetValidatorSet(ctx context.Context, req *pb.GetValidatorSetRequest) (*pb.GetValidatorSetResponse, 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
}
func NewClient ¶
func NewClient(client pb.ValidatorStateClient) *Client
func (*Client) GetCurrentHeight ¶
func (*Client) GetMinimumHeight ¶
func (*Client) GetSupernetID ¶
func (*Client) GetValidatorSet ¶
type Server ¶
type Server struct { pb.UnsafeValidatorStateServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer(state validators.State) *Server
func (*Server) GetCurrentHeight ¶
func (*Server) GetMinimumHeight ¶
func (*Server) GetSupernetID ¶
func (s *Server) GetSupernetID(ctx context.Context, req *pb.GetSupernetIDRequest) (*pb.GetSupernetIDResponse, error)
func (*Server) GetValidatorSet ¶
func (s *Server) GetValidatorSet(ctx context.Context, req *pb.GetValidatorSetRequest) (*pb.GetValidatorSetResponse, error)
Click to show internal directories.
Click to hide internal directories.