Versions in this module Expand all Collapse all v0 v0.0.1 Aug 13, 2022 Changes in this version + var Get = viper.Get + var GetBool = viper.GetBool + var GetDuration = viper.GetDuration + var GetFloat64 = viper.GetFloat64 + var GetInt = viper.GetInt + var GetString = viper.GetString + var Set = viper.Set + func GetIP() string + func GetIPWithDefault(defaultIP string) string + func GetPort() int + func GetPortWithDefault(defaultPort int) int + func GetTokenAccessDuration() time.Duration + func GetTokenRefreshDuration() time.Duration + func GetTokenSymmetricKey() string + func GetVersion() string + func Init() + func InitWithPathAndType(configPath, configType string) + func IsDebugMode() bool + func SetEnv(e TypeEnv) + type Config struct + DebugMode bool + HTTPServer struct{ ... } + MySQL struct{ ... } + Token struct{ ... } + Version string + func GetConfig() *Config + type TypeEnv int + const TypeEnvDev + const TypeEnvProd + const TypeEnvTest + const TypeEnvUnknown + func GetEnv() TypeEnv + func (te TypeEnv) String() string