Documentation ¶
Index ¶
- type BeaconNode
- func (b *BeaconNode) Duties() *services.DutiesService
- func (b *BeaconNode) Metadata() *services.MetadataService
- func (b *BeaconNode) Node() beacon.Node
- func (b *BeaconNode) OnReady(_ context.Context, callback func(ctx context.Context) error)
- func (b *BeaconNode) Start(ctx context.Context) error
- func (b *BeaconNode) Synced(ctx context.Context) error
- type Config
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconNode ¶
type BeaconNode struct {
// contains filtered or unexported fields
}
func NewBeaconNode ¶
func NewBeaconNode(ctx context.Context, name string, config *Config, log logrus.FieldLogger, opt *Options) (*BeaconNode, error)
func (*BeaconNode) Duties ¶
func (b *BeaconNode) Duties() *services.DutiesService
func (*BeaconNode) Metadata ¶
func (b *BeaconNode) Metadata() *services.MetadataService
func (*BeaconNode) Node ¶
func (b *BeaconNode) Node() beacon.Node
type Config ¶
type Config struct { // The address of the Beacon node to connect to BeaconNodeAddress string `yaml:"beaconNodeAddress"` // OverrideNetworkName is the name of the network to use for the sentry. // If not set, the network name will be retrieved from the beacon node. OverrideNetworkName string `yaml:"overrideNetworkName" default:""` // BeaconNodeHeaders is a map of headers to send to the beacon node. BeaconNodeHeaders map[string]string `yaml:"beaconNodeHeaders"` // BeaconSubscriptions is a list of beacon subscriptions to subscribe to. BeaconSubscriptions *[]string `yaml:"beaconSubscriptions"` }
type Options ¶ added in v1.0.1
func (*Options) WithFetchBeaconCommittees ¶ added in v1.0.1
func (*Options) WithFetchProposerDuties ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.