Documentation ¶
Index ¶
- type Fetcher
- func (f *Fetcher) Fetch(ctx context.Context, duty core.Duty, defSet core.DutyDefinitionSet) error
- func (f *Fetcher) RegisterAggSigDB(fn func(context.Context, core.Duty, core.PubKey) (core.SignedData, error))
- func (f *Fetcher) RegisterAwaitAttData(...)
- func (f *Fetcher) Subscribe(fn func(context.Context, core.Duty, core.UnsignedDataSet) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher fetches proposed duty data.
func (*Fetcher) RegisterAggSigDB ¶
func (f *Fetcher) RegisterAggSigDB(fn func(context.Context, core.Duty, core.PubKey) (core.SignedData, error))
RegisterAggSigDB registers a function to get resolved aggregated signed data from AggSigDB. Note: This is not thread safe and should only be called *before* Fetch.
func (*Fetcher) RegisterAwaitAttData ¶ added in v0.10.1
func (f *Fetcher) RegisterAwaitAttData(fn func(ctx context.Context, slot int64, commIdx int64) (*eth2p0.AttestationData, error))
RegisterAwaitAttData registers a function to get attestation data from DutyDB. Note: This is not thread safe and should only be called *before* Fetch.
Click to show internal directories.
Click to hide internal directories.