Documentation ¶
Index ¶
- Constants
- Variables
- func CleanLoaders()
- func InitWatcherManager()
- func Load(drivername string, file source.Source, v interface{}) error
- func LoadAll(files ...source.Source)
- func LoadJSON(file source.Source, v interface{}) error
- func MustLoadJSON(file source.Source, v interface{})
- func RegisterLoader(file source.Source, loader func(file source.Source))
- type ConfigError
- type Loader
Constants ¶
View Source
const UnmarshalerNameJSON = "json"
Variables ¶
View Source
var Debug = false
View Source
var ErrConfigPathNotInited = errors.New("config path not inited")
View Source
var Lock sync.RWMutex
View Source
var WatcherManager = source.NewWatchManager()
Functions ¶
func CleanLoaders ¶
func CleanLoaders()
func InitWatcherManager ¶
func InitWatcherManager()
func MustLoadJSON ¶
Types ¶
type ConfigError ¶
func NewError ¶
func NewError(configPath string, rawError error) *ConfigError
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
Click to show internal directories.
Click to hide internal directories.