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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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