config

package
v0.5.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagCfg is the flag for cfg
	FlagCfg = "cfg"
	// FlagGenesis is the flag for genesis file
	FlagGenesis = "genesis"
)
View Source
const DefaultValues = `` /* 497-byte string literal not displayed */

DefaultValues is the default configuration

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChainID    uint64              `mapstructure:"ChainID"`
	Online     OnlineConfig        `mapstructure:"Online"`
	Offline    datastreamer.Config `mapstructure:"Offline"`
	StateDB    db.Config           `mapstructure:"StateDB"`
	Executor   executor.Config     `mapstructure:"Executor"`
	MerkleTree MTConfig            `mapstructure:"MerkleTree"`
	Log        log.Config          `mapstructure:"Log"`
}

Config is the configuration for the tool

func Default

func Default() (*Config, error)

Default parses the default configuration values.

func Load

func Load(ctx *cli.Context) (*Config, error)

Load parses the configuration values from the config file and environment variables

type MTConfig added in v0.4.3

type MTConfig struct {
	URI        string `mapstructure:"URI"`
	MaxThreads int    `mapstructure:"MaxThreads"`
}

MTConfig is the configuration for the merkle tree

type OnlineConfig added in v0.3.3

type OnlineConfig struct {
	URI        string                  `mapstructure:"URI"`
	StreamType datastreamer.StreamType `mapstructure:"StreamType"`
}

OnlineConfig is the configuration for the online data streamer

Jump to

Keyboard shortcuts

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