Documentation ¶
Index ¶
- type Config
- func (this *Config) Get(keyName string) any
- func (this *Config) GetAdapter() interfaces.Adapter
- func (this *Config) GetBool(keyName string) bool
- func (this *Config) GetDuration(keyName string) time.Duration
- func (this *Config) GetFloat64(keyName string) float64
- func (this *Config) GetInt(keyName string) int
- func (this *Config) GetInt32(keyName string) int32
- func (this *Config) GetInt64(keyName string) int64
- func (this *Config) GetIntSlice(keyName string) []int
- func (this *Config) GetString(keyName string) string
- func (this *Config) GetStringMap(keyName string) map[string]any
- func (this *Config) GetStringMapString(keyName string) map[string]string
- func (this *Config) GetStringMapStringSlice(keyName string) map[string][]string
- func (this *Config) GetStringSlice(keyName string) []string
- func (this *Config) GetTime(keyName string) time.Time
- func (this *Config) GetUint(keyName string) uint
- func (this *Config) GetUint32(keyName string) uint32
- func (this *Config) GetUint64(keyName string) uint64
- func (this *Config) IsSet(keyName string) bool
- func (this *Config) OnConfigChange(f func(string)) *Config
- func (this *Config) Set(keyName string, value any) *Config
- func (this *Config) SetDefault(keyName string, value any) *Config
- func (this *Config) WithAdapter(adapter interfaces.Adapter) *Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
*
- 配置 *
- @create 2021-6-19
- @author deatil
func (*Config) GetDuration ¶
GetDuration
func (*Config) GetStringMap ¶
GetStringMap
func (*Config) GetStringMapString ¶
GetStringMapString
func (*Config) GetStringMapStringSlice ¶
GetStringMapStringSlice
func (*Config) GetStringSlice ¶
GetStringSlice
func (*Config) WithAdapter ¶
func (this *Config) WithAdapter(adapter interfaces.Adapter) *Config
添加适配器
Click to show internal directories.
Click to hide internal directories.