Documentation ¶
Index ¶
- func AddChecker(ff func() bool)
- func AddLoader(key string, f func(b []byte) error)
- func InitWithLoader(path string, loader ConfigLoaderIF, must bool, liveLoading bool) error
- func LoadAll() error2.Array
- func MustInitLocal(path string, liveLoading bool)
- func SetLogger(l *zap.Logger)
- type ConfigLoaderIF
- type LocalLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChecker ¶
func AddChecker(ff func() bool)
func InitWithLoader ¶
func InitWithLoader(path string, loader ConfigLoaderIF, must bool, liveLoading bool) error
func MustInitLocal ¶
Types ¶
type ConfigLoaderIF ¶
type LocalLoader ¶
func NewLocalLoader ¶
func NewLocalLoader() *LocalLoader
func (*LocalLoader) Watch ¶
func (p *LocalLoader) Watch(path string, onChange func(string))
Click to show internal directories.
Click to hide internal directories.