Versions in this module Expand all Collapse all v1 v1.0.0 Apr 15, 2021 Changes in this version + func ConfigComment(t interface{}) ([]byte, error) + func CoverConfig(path string, config *Config) error + func GetStringSlicePreserveString(cfg Provider, key string) []string + type APIConfig struct + ListenAddress string + type Config struct + API *APIConfig + DB *DBConfig + Factor *CryptoFactor + JWT *JWTConfig + Metrics *MetricsConfig + Strategy *StrategyConfig + func DecodeConfig(path string) (c *Config, err error) + type CryptoFactor struct + ScryptN int + ScryptP int + type DBConfig struct + Conn string + DebugMode bool + Type string + type JWTConfig struct + Secret string + Token string + type MetricsConfig struct + HeadNotify bool + Nickname string + type Provider interface + Get func(key string) interface{} + GetBool func(key string) bool + GetInt func(key string) int + GetString func(key string) string + GetStringMap func(key string) map[string]interface{} + GetStringMapString func(key string) map[string]string + GetStringSlice func(key string) []string + IsSet func(key string) bool + OnConfigChange func(run func(in fsnotify.Event)) + Set func(key string, value interface{}) + Unmarshal func(rawVal interface{}, opts ...viper.DecoderConfigOption) error + UnmarshalKey func(key string, rawVal interface{}, opts ...viper.DecoderConfigOption) error + WatchConfig func() + func FromConfigString(path, configType string) (Provider, error) + type StrategyConfig struct + Level uint8 + NodeURL string