Documentation ¶
Index ¶
- Constants
- func NewEth1Server() []nodeOption
- func NewLighthouseBeacon(config *BeaconConfig) ([]nodeOption, error)
- func NewLighthouseValidator(config *ValidatorConfig) ([]nodeOption, error)
- func NewPrysmBeacon(config *BeaconConfig) ([]nodeOption, error)
- func NewPrysmValidator(config *ValidatorConfig) ([]nodeOption, error)
- func NewTekuBeacon(config *BeaconConfig) ([]nodeOption, error)
- func NewTekuValidator(config *ValidatorConfig) ([]nodeOption, error)
- func WithCmd(cmd []string) nodeOption
- func WithContainer(repository string) nodeOption
- func WithFile(path string, obj interface{}) nodeOption
- func WithLabels(m map[string]string) nodeOption
- func WithMount(mount string) nodeOption
- func WithName(name string) nodeOption
- func WithNodeClient(nodeClient proto.NodeClient) nodeOption
- func WithNodeType(nodeType proto.NodeType) nodeOption
- func WithOutput(output io.Writer) nodeOption
- func WithRetry(retry func(n *node) error) nodeOption
- func WithTag(tag string) nodeOption
- func WithUser(user string) nodeOption
- type BeaconConfig
- type Bootnode
- type Config
- type CreateBeacon
- type CreateBeacon2
- type CreateValidator
- type CreateValidator2
- type Eth2Spec
- type Forks
- type NodePort
- type Server
- type ValidatorConfig
Constants ¶
View Source
const ( // NodePortEth1Http is the http port for the eth1 node. NodePortEth1Http = "eth1.http" // NodePortP2P is the p2p port for an eth2 node. NodePortP2P = "eth2.p2p" // NodePortHttp is the http port for an eth2 node. NodePortHttp = "eth2.http" // NodePortPrysmGrpc is the specific prysm port for its Grpc server NodePortPrysmGrpc = "eth2.prysm.grpc" )
Variables ¶
This section is empty.
Functions ¶
func NewEth1Server ¶
func NewEth1Server() []nodeOption
NewEth1Server creates a new eth1 server with go-ethereum
func NewLighthouseBeacon ¶
func NewLighthouseBeacon(config *BeaconConfig) ([]nodeOption, error)
NewLighthouseBeacon creates a new prysm server
func NewLighthouseValidator ¶
func NewLighthouseValidator(config *ValidatorConfig) ([]nodeOption, error)
func NewPrysmBeacon ¶
func NewPrysmBeacon(config *BeaconConfig) ([]nodeOption, error)
NewPrysmBeacon creates a new prysm server
func NewPrysmValidator ¶
func NewPrysmValidator(config *ValidatorConfig) ([]nodeOption, error)
func NewTekuBeacon ¶
func NewTekuBeacon(config *BeaconConfig) ([]nodeOption, error)
NewTekuBeacon creates a new teku server
func NewTekuValidator ¶
func NewTekuValidator(config *ValidatorConfig) ([]nodeOption, error)
func WithContainer ¶
func WithContainer(repository string) nodeOption
func WithLabels ¶
func WithNodeClient ¶
func WithNodeClient(nodeClient proto.NodeClient) nodeOption
func WithNodeType ¶
func WithOutput ¶
Types ¶
type BeaconConfig ¶
type Bootnode ¶
type Bootnode struct { Enr string // contains filtered or unexported fields }
func NewBootnode ¶
func (Bootnode) Type ¶
func (n Bootnode) Type() proto.NodeClient
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type CreateBeacon ¶
type CreateBeacon func(cfg *BeaconConfig) (*node, error)
CreateBeacon is a factory method to create beacon nodes
type CreateBeacon2 ¶
type CreateBeacon2 func(cfg *BeaconConfig) ([]nodeOption, error)
type CreateValidator ¶
type CreateValidator func(cfg *ValidatorConfig) (*node, error)
CreateValidator is a factory method to create validator nodes
type CreateValidator2 ¶
type CreateValidator2 func(cfg *ValidatorConfig) ([]nodeOption, error)
type Eth2Spec ¶
type Eth2Spec struct { GenesisValidatorCount int GenesisDelay int MinGenesisTime int EthFollowDistance int SecondsPerEth1Block int EpochsPerEth1VotingPeriod int ShardCommitteePeriod int SlotsPerEpoch int SecondsPerSlot int DepositContract string Forks Forks }
Eth2Spec is the config of the Eth2.0 node
func (*Eth2Spec) MarshalText ¶
type Server ¶
type Server struct { proto.UnimplementedE2EServiceServer // contains filtered or unexported fields }
func (*Server) DeployNode ¶
func (s *Server) DeployNode(ctx context.Context, req *proto.DeployNodeRequest) (*proto.DeployNodeResponse, error)
func (*Server) DeployValidator ¶
func (s *Server) DeployValidator(ctx context.Context, req *proto.DeployValidatorRequest) (*proto.DeployValidatorResponse, error)
type ValidatorConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.