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) 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 New ¶
func New(eth2Svc eth2client.Service) (*Fetcher, error)
New returns a new fetcher instance.
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 the AggSigDB. Note: This is not thread safe should be called *before* Fetch.
Click to show internal directories.
Click to hide internal directories.