Documentation ¶
Index ¶
- Variables
- func Fetch[T any](ctx context.Context, request *Request) (*T, error)
- func FetchWithRetry[T any](ctx context.Context, client http.Client, url *url.URL, closeCh chan struct{}) (*T, error)
- type HeimdallClient
- func (h *HeimdallClient) Close()
- func (h *HeimdallClient) FetchCheckpoint(ctx context.Context, number int64) (*checkpoint.Checkpoint, error)
- func (h *HeimdallClient) FetchCheckpointCount(ctx context.Context) (int64, error)
- func (h *HeimdallClient) Span(ctx context.Context, spanID uint64) (*span.HeimdallSpan, error)
- func (h *HeimdallClient) StateSyncEvents(ctx context.Context, fromID uint64, to int64) ([]*clerk.EventRecordWithTime, error)
- type Request
- type SpanResponse
- type StateSyncEventsResponse
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type HeimdallClient ¶
type HeimdallClient struct {
// contains filtered or unexported fields
}
func NewHeimdallClient ¶
func NewHeimdallClient(urlString string) *HeimdallClient
func (*HeimdallClient) Close ¶
func (h *HeimdallClient) Close()
Close sends a signal to stop the running process
func (*HeimdallClient) FetchCheckpoint ¶
func (h *HeimdallClient) FetchCheckpoint(ctx context.Context, number int64) (*checkpoint.Checkpoint, error)
FetchCheckpoint fetches the checkpoint from heimdall
func (*HeimdallClient) FetchCheckpointCount ¶
func (h *HeimdallClient) FetchCheckpointCount(ctx context.Context) (int64, error)
FetchCheckpointCount fetches the checkpoint count from heimdall
func (*HeimdallClient) Span ¶
func (h *HeimdallClient) Span(ctx context.Context, spanID uint64) (*span.HeimdallSpan, error)
func (*HeimdallClient) StateSyncEvents ¶
func (h *HeimdallClient) StateSyncEvents(ctx context.Context, fromID uint64, to int64) ([]*clerk.EventRecordWithTime, error)
type SpanResponse ¶
type SpanResponse struct { Height string `json:"height"` Result span.HeimdallSpan `json:"result"` }
type StateSyncEventsResponse ¶
type StateSyncEventsResponse struct { Height string `json:"height"` Result []*clerk.EventRecordWithTime `json:"result"` }
Click to show internal directories.
Click to hide internal directories.