config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PasswordEnvVariable = "OPERATOR_KEY_FILE_PASSWORD"

PasswordEnvVariable environment variable name for operator key file password.

#nosec G101 (look for hardcoded credentials) This line doesn't contain any credentials. It's just the name of the environment variable.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ethereum ethereum.Config
	Bitcoin  btc.Config
	Metrics  Metrics
	Relay    Relay
}

Config is the top level config structure.

func ReadConfig

func ReadConfig(filePath string) (*Config, error)

ReadConfig reads in the configuration file in .toml format. Chain key file password is expected to be provided as environment variable.

type Metrics

type Metrics struct {
	Port             int
	ChainMetricsTick int
	NodeMetricsTick  int
}

Metrics stores meta-info about metrics.

type Relay added in v1.2.0

type Relay struct {
	HeadersBatchSize int
}

Relay stores relay config.

Jump to

Keyboard shortcuts

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