eth2network

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: AGPL-3.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

Config holds the properties that configure the package

func NewEth2NetworkConfig

func NewEth2NetworkConfig(opts ...Option) *Config

type Eth2Network

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

func NewDockerEth2Network

func NewDockerEth2Network(cfg *Config) (*Eth2Network, error)

func (*Eth2Network) IsReady

func (n *Eth2Network) IsReady() error

func (*Eth2Network) Start

func (n *Eth2Network) Start() error

type Option

type Option = func(c *Config)

Option is a function that applies configs to a Config Object

func WithGethHTTPStartPort

func WithGethHTTPStartPort(i int) Option

func WithGethPrefundedAddrs

func WithGethPrefundedAddrs(addrs []string) Option

func WithGethWSStartPort

func WithGethWSStartPort(i int) Option

Jump to

Keyboard shortcuts

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