Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvConf ¶
type EnvConf struct { // Program running root directory RootPath string `yaml:"rootPath,omitempty"` // envconfig file directory ConfDir string `yaml:"confDir,omitempty"` // data file directory DataDir string `yaml:"dataDir,omitempty"` // log file directory LogDir string `yaml:"logDir,omitempty"` // tls file directory TlsDir string `yaml:"tlsDir,omitempty"` // node key directory KeyDir string `yaml:"keyDir,omitempty"` // blockchain data directory ChainDir string `yaml:"chainDir,omitempty"` // engine envconfig file name EngineConf string `yaml:"engineConf,omitempty"` // log envconfig file name LogConf string `yaml:"logConf,omitempty"` // server envconfig file name ServConf string `yaml:"servConf,omitempty"` // network envconfig file name NetConf string `yaml:"netConf,omitempty"` // ledger envconfig file name LedgerConf string `yaml:"ledgerConf,omitempty"` // metric switch MetricSwitch bool `yaml:"metricSwitch,omitempty"` }
func GetDefEnvConf ¶
func GetDefEnvConf() *EnvConf
func LoadEnvConf ¶
func (*EnvConf) GenConfFilePath ¶
func (*EnvConf) GenDataAbsPath ¶
func (*EnvConf) GenDirAbsPath ¶
Click to show internal directories.
Click to hide internal directories.