Versions in this module Expand all Collapse all v1 v1.0.0 Apr 5, 2023 Changes in this version + type App struct + Captcha *Captcha + type Captcha struct + Height int + Length int + Width int + type Channel struct + Database string + Host string + Hosts []string + Hystrix *Hystrix + MasterName string + Name string + Password string + Port int + Timeout int + Token string + Username string + type Client struct + Mongodb *Channel + MySQL *Channel + Redis *Channel + Smtp *Channel + type Config struct + App *App + Client *Client + Server *Server + func GetInstance() *Config + func (o *Config) InitApp(cfg *viper.Viper) error + func (o *Config) InitClient(cfg *viper.Viper) error + func (o *Config) InitServer(cfg *viper.Viper) error + type Hystrix struct + ErrorPercentThreshold int + MaxConcurrent int + Name string + RequestVolumeThreshold int + SleepWindow int + Timeout int + type Log struct + File string + Level string + type Server struct + Domain string + Host string + Hystrix *Hystrix + Log *Log + Port int + func (o *Server) Address() string + type Viper struct + Name string + Path string + Type string + func NewViper(name string) *Viper + func (o *Viper) Watch(f func(cfg *viper.Viper) error) error