Documentation ¶
Index ¶
- Constants
- func HeadersByRange(ctx context.Context, client *rpc.Client, startHeight uint64, count int) ([]*types.Header, error)
- type ConfirmedHeaderSelector
- type HeaderSelectorConfig
- type IndexerStatus
- type Service
- func (s *Service) GetIndexerStatus(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetWithdrawalBatch(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetWithdrawals(w http.ResponseWriter, r *http.Request)
- func (s *Service) Start() error
- func (s *Service) Stop()
- func (s *Service) Update(newHeader *types.Header) error
- type ServiceConfig
Constants ¶
View Source
const ( DefaultConnectionTimeout = 20 * time.Second DefaultConfDepth uint64 = 20 DefaultMaxBatchSize = 50 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfirmedHeaderSelector ¶
type ConfirmedHeaderSelector struct {
// contains filtered or unexported fields
}
func NewConfirmedHeaderSelector ¶
func NewConfirmedHeaderSelector(cfg HeaderSelectorConfig) (*ConfirmedHeaderSelector, error)
type HeaderSelectorConfig ¶
type IndexerStatus ¶
type IndexerStatus struct { Synced float64 `json:"synced"` Highest db.BlockLocator `json:"highest_block"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(cfg ServiceConfig) (*Service, error)
func (*Service) GetIndexerStatus ¶
func (s *Service) GetIndexerStatus(w http.ResponseWriter, r *http.Request)
func (*Service) GetWithdrawalBatch ¶
func (s *Service) GetWithdrawalBatch(w http.ResponseWriter, r *http.Request)
func (*Service) GetWithdrawals ¶
func (s *Service) GetWithdrawals(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.