Documentation ¶
Index ¶
- type Config
- type EpochExtractor
- type Service
- func (s *Service) ConsensusInfoByEpochRange(fromEpoch, toEpoch types.Epoch) map[types.Epoch]*eventTypes.MinimalEpochConsensusInfo
- func (s *Service) CurrentEpoch() types.Epoch
- func (s *Service) Start()
- func (s *Service) Status() error
- func (s *Service) Stop() error
- func (s *Service) SubscribeMinConsensusInfoEvent(ch chan<- *eventTypes.MinimalEpochConsensusInfo) event.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpochExtractor ¶ added in v0.0.8
type EpochExtractor interface { SubscribeMinConsensusInfoEvent(chan<- *types.MinimalEpochConsensusInfo) event.Subscription CurrentEpoch() eth2Types.Epoch ConsensusInfoByEpochRange(fromEpoch, toEpoch eth2Types.Epoch) map[eth2Types.Epoch]*types.MinimalEpochConsensusInfo }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ConsensusInfoByEpochRange ¶ added in v0.0.8
func (s *Service) ConsensusInfoByEpochRange( fromEpoch, toEpoch types.Epoch, ) map[types.Epoch]*eventTypes.MinimalEpochConsensusInfo
ConsensusInfoByEpochRange
func (*Service) CurrentEpoch ¶ added in v0.0.8
CurrentEpoch
func (*Service) Start ¶
func (s *Service) Start()
Start a consensus info fetcher service's main event loop.
func (*Service) SubscribeMinConsensusInfoEvent ¶ added in v0.0.8
func (s *Service) SubscribeMinConsensusInfoEvent(ch chan<- *eventTypes.MinimalEpochConsensusInfo) event.Subscription
SubscribeChainHeadEvent registers a subscription of ChainHeadEvent.
Click to show internal directories.
Click to hide internal directories.