Versions in this module Expand all Collapse all v1 v1.0.1 Sep 12, 2023 v1.0.0 Sep 12, 2023 v0 v0.0.2 Sep 2, 2023 v0.0.1 Sep 2, 2023 Changes in this version + var GConfig = &Config + func Init(v *viper.Viper) (err error) + func ServiceName() string + type AmapServer struct + Key string + type Bootstrap struct + Graceful bool + Pid string + Timeout int + type Commandline struct + Graceful bool + type Config struct + AmapServer AmapServer + Bootstrap Bootstrap + ChildServer []map[string]interface{} + Commandline Commandline + Env string + HttpBreaker []map[string]interface{} + HttpServer HttpServer + LocalConfig LocalConfig + Log log.ConfigLog + LoginUser []LoginUser + Mysql []db.Mysql + Nsq Nsq + OSS OSS + Redis []trace_redis.Redis + Server []Server + Trace Trace + Transport Transport + type Consumer struct + Addr string + DialTimeout int32 + Lookup []string + MaxInFlight int32 + Name string + ReadTimeout int32 + WriteTimeout int32 + type GrpcConfig struct + Addr string + type HTTPConfig struct + Addr string + IdleTimeout float64 + MaxConns int + ReadHeaderTimeout float64 + ReadTimeout float64 + WriteTimeout float64 + type HttpServer struct + CloseBreaker bool + SelfServiceName string + type Kv struct + KeyPerfix string + Url string + type LocalConfig struct + Env string + ServiceName string + type Log struct + Access struct{ ... } + App struct{ ... } + LogType string + type LoginUser struct + UserName string + UserPwd string + type Nsq struct + Consumer []Consumer + Producer []Producer + type OSS struct + AK string + AS string + Endpoint string + type Producer struct + Addr string + DialTimeout int32 + MaxConcurrency int32 + Name string + ReadTimeout int32 + WriteTimeout int32 + type Server struct + ConnectConsul string + ConnectSidecar string + DiscoveryDC string + DiscoveryServiceName string + DiscoveryServicePort int + DiscoveryTag string + Name string + Url string + type Trace struct + FilePath string + Sampling float64 + ServiceName string + type Transport struct + CmdInnerHTTP HTTPConfig + Grpc GrpcConfig + HTTP HTTPConfig + InnerHTTP HTTPConfig