Versions in this module Expand all Collapse all v1 v1.0.2 Aug 2, 2022 v1.0.1 Aug 2, 2022 v1.0.0 Jul 29, 2022 Changes in this version + var Global *globalConfig + func LoadJsonConfig(configFile string, data interface{}) error + func LoadJsonConfigFromBasePath(configFile string, data interface{}) error + type ClientConfig struct + ClientId string + ClientName string + RemoteHost string + RemoteTcpPort int32 + type Config struct + BasePath string + CHDataBase map[string]*DBConfig + Console ConsoleConfig + DataBase map[string]*DBConfig + Debug bool + HttpServer HttpServerConfig + Log map[string]*LogConfig + Master ClientConfig + Nsq NsqConfig + Pprof PprofConfig + Redis map[string]*RedisConfig + RpcServer RpcServerConfig + ServerCode string + ServerId string + ServerName string + TcpServer TcpServerConfig + Version string + WsServer WsServerConfig + func NewConfig() Config + type ConsoleConfig struct + ConsolePrompt string + type DBConfig struct + DbName string + Host string + MaxIdleConn int + MaxOpenConn int + Password string + Port int + Prefix string + ShowLog bool + User string + type HttpServerConfig struct + CertFile string + KeyFile string + type LogConfig struct + EnableConsole bool + EnableWriteFile bool + FileFormat string + FilePath string + Level string + MaxAge int + PrintCaller bool + RotationTime int + StackLevel string + TimeFormat string + type NsqConfig struct + type PprofConfig struct + type RedisConfig struct + Host string + Port int + Prefix string + type RpcServerConfig struct + type TcpServerConfig struct + MaxConn int32 + MaxMsgChanLen uint32 + WorkerPoolSize uint32 + WorkerTaskLen uint32 + type WsServerConfig struct + CertFile string + KeyFile string + MaxConn int32 + MaxMsgChanLen uint32 + WorkerPoolSize uint32 + WorkerTaskLen uint32