standard

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

WithMonitor sets the monitor for the module.

func WithSyncCommitteeSubmitter

func WithSyncCommitteeSubmitter(provider eth2client.SyncCommitteeSubscriptionsSubmitter) Parameter

WithSyncCommitteeSubmitter sets the sync committee subscriptions provider.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is an beacon committee subscriber.

func New

func New(_ context.Context, params ...Parameter) (*Service, error)

New creates a new sync committee subscriber.

func (*Service) Subscribe

func (s *Service) Subscribe(ctx context.Context,
	endEpoch phase0.Epoch,
	duties []*api.SyncCommitteeDuty,
) error

Subscribe subscribes to sync committees given a set of duties.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL