Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // C Global configuration (Must Load first, otherwise the configuration will not be available) C = new(Config) )
Functions ¶
func ParseConfigByEnv ¶
func ParseConfigByEnv() error
func PrintWithJSON ¶
func PrintWithJSON()
Types ¶
type App ¶
type App struct { LocalAddr string LocalPort int CertFile string KeyFile string HttpListenAddr string }
App Configuration parameters
type Config ¶
type Config struct { RunMode string PrintConfig bool App App P2p P2p Web3 Web3 Log Log LogRedisHook LogRedisHook Mysql Mysql }
func (*Config) IsDebugMode ¶
func (*Config) IsReleaseMode ¶
type LogGormHook ¶
type LogRedisHook ¶
Click to show internal directories.
Click to hide internal directories.