Documentation ¶
Index ¶
- func AddConfigWatcherTriger(iocc IOnConfigChange)
- func DelConfigWatcherTriger(iocc IOnConfigChange)
- func GetConfig() *viper.Viper
- func GetInt(s string, defaultValue int) int
- func GetInt64(s string, defaultValue int64) int64
- func GetString(s, defaultValue string) string
- func Init(env string, cfgPath string)
- func SetConfig(c *viper.Viper)
- type IOnConfigChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigWatcherTriger ¶
func AddConfigWatcherTriger(iocc IOnConfigChange)
func DelConfigWatcherTriger ¶
func DelConfigWatcherTriger(iocc IOnConfigChange)
Types ¶
type IOnConfigChange ¶
type IOnConfigChange interface {
OnConfigChange()
}
Click to show internal directories.
Click to hide internal directories.