Documentation ¶
Index ¶
- type Parameter
- func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
- func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
- func WithBeaconCommitteeSubmitter(submitter submitter.BeaconCommitteeSubscriptionsSubmitter) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.BeaconCommitteeSubscriptionMonitor) 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 WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
func WithMonitor(monitor metrics.BeaconCommitteeSubscriptionMonitor) Parameter
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 uint64, accounts []accountmanager.ValidatingAccount) (map[uint64]map[uint64]*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.