Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2022 Changes in this version + const AuthAccessTokenCacheKeyTimeout + const AuthCodeCacheKey + const AuthCodeCacheKeyTimeout + const AuthRefreshTokenCacheKeyTimeout + const AuthTokenCacheKey + func NewLoggerCfg(v *viper.Viper) (conf *log.Options, err error) + func NewMongoConfig(v *viper.Viper) (conf *mongo.Config, err error) + func NewRedisConfig(v *viper.Viper) (conf *redis.Config, err error) + func NewViper() (*viper.Viper, error) + type AppConfig struct + NetConf *NetConf + func NewAppConfigCfg(v *viper.Viper) (conf *AppConfig, err error) + type NetConf struct + Name string + ReadTimeout int + ServerAddr string + WriteTimeout int