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"`
// config 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 config file name
EngineConf string `yaml:"engineConf,omitempty"`
// log config file name
LogConf string `yaml:"logConf,omitempty"`
// server config file name
ServConf string `yaml:"servConf,omitempty"`
// network config file name
NetConf string `yaml:"netConf,omitempty"`
// ledger config 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.