Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig()
Types ¶
type Config ¶
type Config struct { MySQL struct { Base struct { MaxOpenConn int MaxIdleConn int ConnMaxLifeTime time.Duration Addr string User string Pass string Name string } } ETCD struct { Endpoints []string Username string Password string DialTimeout time.Duration DialKeepAlive time.Duration DialKeepAliveTimeout time.Duration } JWT struct { Secret string ExpireDuration time.Duration Type string RefreshDuration time.Duration } Log struct { LogPath string Level string Stdout bool JsonFormat bool } Server struct { ServerName string Host string Pprof bool HistoryListLen int64 } Jaeger struct { UdpEndpoint string StdOut bool } SDK struct { ConfigFilePath string LogLevel string MergeConfig bool } }
Click to show internal directories.
Click to hide internal directories.