server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

Command is the command that starts the agent

func (*Command) Help

func (c *Command) Help() string

Help implements the cli.Command interface

func (*Command) Run

func (c *Command) Run(args []string) int

Run implements the cli.Command interface

func (*Command) Synopsis

func (c *Command) Synopsis() string

Synopsis implements the cli.Command interface

type Config

type Config struct {
	// DepositAddress is the address of the deposit contract in eth1
	DepositAddress string `hcl:"deposit_addr"`

	// Endpoint is the endpoint for eth1
	Endpoint string `hcl:"endpoint"`

	// LogLevel is used to set the log level.
	LogLevel string `hcl:"log_level"`

	// Debug enables debug mode
	Debug bool `hcl:"debug"`

	// PrivKey is a private key to start
	PrivKey string

	// DataDir is the store data dir
	DataDir string `hcl:"data_dir"`

	// BeaconChainConfig is the reference to the beacon chain
	BeaconChain string `hcl:"beacon_chain"`

	// Keymanager is the configuration for the keymanager
	Keymanager map[string]map[string]interface{} `hcl:"keymanager"`
}

Config is the agent configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration for the agent

func (*Config) Merge

func (c *Config) Merge(c1 ...*Config) error

Merge merges two configurations

Jump to

Keyboard shortcuts

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