Documentation ¶
Index ¶
- func SetupGRPCServer(shutDownCtx context.Context, cdc *codec.Codec, addr string, lggr tmLog.Logger) error
- type Checkpoint
- type Event
- type HeimdallGRPCServer
- func (h *HeimdallGRPCServer) FetchCheckpoint(ctx context.Context, in *proto.FetchCheckpointRequest) (*proto.FetchCheckpointResponse, error)
- func (h *HeimdallGRPCServer) FetchCheckpointCount(ctx context.Context, in *emptypb.Empty) (*proto.FetchCheckpointCountResponse, error)
- func (h *HeimdallGRPCServer) Span(ctx context.Context, in *proto.SpanRequest) (*proto.SpanResponse, error)
- func (h *HeimdallGRPCServer) StateSyncEvents(req *proto.StateSyncEventsRequest, reply proto.Heimdall_StateSyncEventsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checkpoint ¶
type Checkpoint struct { Proposer hmTypes.HeimdallAddress `json:"proposer"` StartBlock uint64 `json:"start_block"` EndBlock uint64 `json:"end_block"` RootHash hmTypes.HeimdallHash `json:"root_hash"` BorChainID string `json:"bor_chain_id"` TimeStamp uint64 `json:"timestamp"` }
type HeimdallGRPCServer ¶
type HeimdallGRPCServer struct { proto.UnimplementedHeimdallServer // contains filtered or unexported fields }
func (*HeimdallGRPCServer) FetchCheckpoint ¶
func (h *HeimdallGRPCServer) FetchCheckpoint(ctx context.Context, in *proto.FetchCheckpointRequest) (*proto.FetchCheckpointResponse, error)
func (*HeimdallGRPCServer) FetchCheckpointCount ¶
func (h *HeimdallGRPCServer) FetchCheckpointCount(ctx context.Context, in *emptypb.Empty) (*proto.FetchCheckpointCountResponse, error)
func (*HeimdallGRPCServer) Span ¶
func (h *HeimdallGRPCServer) Span(ctx context.Context, in *proto.SpanRequest) (*proto.SpanResponse, error)
func (*HeimdallGRPCServer) StateSyncEvents ¶
func (h *HeimdallGRPCServer) StateSyncEvents(req *proto.StateSyncEventsRequest, reply proto.Heimdall_StateSyncEventsServer) error
Click to show internal directories.
Click to hide internal directories.