config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAMODirPath = filepath.Join(os.ExpandEnv("$HOME"), defaultAMODir)

	DefaultConfigFileName = "config.toml"
)

Functions

This section is empty.

Types

type AMOConfig

type AMOConfig struct {
	DataDir      string `mapstructure:"data_dir"`
	ConfigDir    string `mapstructure:"config_dir"`
	MerkleDB     string `mapstructure:"merkle_db"`
	IndexDB      string `mapstructure:"index_db"`
	StateFile    string `mapstructure:"state_file"`
	RLimitNoFile uint64 `mapstructure:"rlimit_nofile"`

	*tmCfg.Config
}

type Config

type Config struct {
	AMOConfig    `mapstructure:"amo"`
	tmCfg.Config `mapstructure:",squash"`
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) ExportToTmCfg

func (cfg *Config) ExportToTmCfg() *tmCfg.Config

Jump to

Keyboard shortcuts

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