Versions in this module Expand all Collapse all v1 v1.5.5 Oct 25, 2023 v0 v0.1.0 Oct 25, 2023 Changes in this version + func Init(configFile string, fs ...func()) error + func Set(conf *Config) + func Show(hiddenFields ...string) string + type App struct + CacheType string + EnableCircuitBreaker bool + EnableHTTPProfile bool + EnableLimit bool + EnableMetrics bool + EnableStat bool + EnableTrace bool + Env string + Host string + Name string + RegistryDiscoveryType string + TracingSamplingRate float64 + Version string + type Center struct + Nacos Nacos + func NewCenter(configFile string) (*Center, error) + type ClientSecure struct + CaFile string + CertFile string + KeyFile string + ServerName string + Type string + type ClientToken struct + AppID string + AppKey string + Enable bool + type Config struct + App App + Consul Consul + Etcd Etcd + Grpc Grpc + GrpcClient []GrpcClient + HTTP HTTP + Jaeger Jaeger + Logger Logger + Mysql Mysql + NacosRd NacosRd + Redis Redis + func Get() *Config + type Consul struct + Addr string + type Etcd struct + Addrs []string + type Grpc struct + EnableToken bool + HTTPPort int + Port int + ReadTimeout int + ServerSecure ServerSecure + WriteTimeout int + type GrpcClient struct + ClientSecure ClientSecure + ClientToken ClientToken + EnableLoadBalance bool + Host string + Name string + Port int + RegistryDiscoveryType string + type HTTP struct + Port int + ReadTimeout int + WriteTimeout int + type Jaeger struct + AgentHost string + AgentPort int + type Logger struct + Format string + IsSave bool + Level string + type Mysql struct + ConnMaxLifetime int + Dsn string + EnableLog bool + MastersDsn []string + MaxIdleConns int + MaxOpenConns int + SlavesDsn []string + SlowThreshold int + type Nacos struct + ContextPath string + DataID string + Format string + Group string + IPAddr string + NamespaceID string + Port int + Scheme string + type NacosRd struct + IPAddr string + NamespaceID string + Port int + type Redis struct + DialTimeout int + Dsn string + ReadTimeout int + WriteTimeout int + type ServerSecure struct + CaFile string + CertFile string + KeyFile string + Type string