Documentation ¶
Index ¶
- type Parameter
- func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
- func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
- func WithBeaconCommitteeSubmitter(submitter submitter.BeaconCommitteeSubscriptionsSubmitter) Parameter
- func WithChainTimeService(service chaintime.Service) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithProcessConcurrency(concurrency int64) Parameter
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithAttestationAggregator ¶
func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
WithAttestationAggregator sets the attestation aggregator.
func WithAttesterDutiesProvider ¶
func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
WithAttesterDutiesProvider sets the attester duties provider.
func WithBeaconCommitteeSubmitter ¶
func WithBeaconCommitteeSubmitter(submitter submitter.BeaconCommitteeSubscriptionsSubmitter) Parameter
WithBeaconCommitteeSubmitter sets the beacon committee subscriptions submitter.
func WithChainTimeService ¶ added in v1.4.0
WithChainTimeService sets the chaintime service.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the module.
func WithProcessConcurrency ¶
WithProcessConcurrency sets the concurrency for the service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is an beacon committee subscriber.
func (*Service) Subscribe ¶
func (s *Service) Subscribe(ctx context.Context, epoch phase0.Epoch, accounts map[phase0.ValidatorIndex]e2wtypes.Account, ) (map[phase0.Slot]map[phase0.CommitteeIndex]*beaconcommitteesubscriber.Subscription, error)
Subscribe subscribes to beacon committees for a given epoch. This returns data about the subnets to which we are subscribing.
Click to show internal directories.
Click to hide internal directories.