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
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) (*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. // 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"` }
Click to show internal directories.
Click to hide internal directories.