beacon

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// The address of the Beacon node to connect to
	NodeAddress string `yaml:"nodeAddress"`
	// NodeHeaders is a map of headers to send to the beacon node.
	NodeHeaders map[string]string `yaml:"nodeHeaders"`
	// Name is the name of the beacon node
	Name string `yaml:"name"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Node

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

func NewNode

func NewNode(ctx context.Context, log logrus.FieldLogger, name string, config *Config) *Node

func (*Node) Metadata

func (b *Node) Metadata() *services.MetadataService

func (*Node) Name

func (b *Node) Name() string

func (*Node) Node

func (b *Node) Node() bn.Node

func (*Node) OnReady

func (b *Node) OnReady(_ context.Context, callback func(ctx context.Context) error)

func (*Node) Start

func (b *Node) Start(ctx context.Context) error

func (*Node) Synced

func (b *Node) Synced(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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