Documentation ¶
Index ¶
- func NewFileConfig() config.Config
- type Config
- func (fc *Config) AllSettings() map[string]interface{}
- func (fc *Config) Get(key string) interface{}
- func (fc *Config) GetBool(key string) bool
- func (fc *Config) GetDuration(key string) time.Duration
- func (fc *Config) GetFloat64(key string) float64
- func (fc *Config) GetInt(key string) int
- func (fc *Config) GetInt32(key string) int32
- func (fc *Config) GetInt64(key string) int64
- func (fc *Config) GetString(key string) string
- func (fc *Config) GetStringMap(key string) map[string]interface{}
- func (fc *Config) GetStringMapString(key string) map[string]string
- func (fc *Config) GetStringSlice(key string) []string
- func (fc *Config) GetTime(key string) time.Time
- func (fc *Config) IsExist(key string) bool
- func (fc *Config) StartAndGC(cfg config.Param) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileConfig ¶
NewFileConfig create new file config with default collection name.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is File config adapter.
func (*Config) AllSettings ¶
AllSettings get all config value
func (*Config) GetDuration ¶
GetDuration get Duration config value by key
func (*Config) GetFloat64 ¶
GetFloat64 get float64 config value by key
func (*Config) GetStringMap ¶
GetStringMap get stringMap config value by key
func (*Config) GetStringMapString ¶
GetStringMapString get stringMapstring config value by key
func (*Config) GetStringSlice ¶
GetStringSlice get stringSlice config value by key
Click to show internal directories.
Click to hide internal directories.