Documentation
¶
Index ¶
- Variables
- type VConfig
- func (c *VConfig) Get(key string, defaultValue interface{}) interface{}
- func (c *VConfig) GetBool(key string, defaultValue bool) (bool, error)
- func (c *VConfig) GetConfigAsString() (string, error)
- func (c *VConfig) GetFloat64(key string, defaultValue float64) (float64, error)
- func (c *VConfig) GetInt(key string, defaultValue int) (int, error)
- func (c *VConfig) GetIntSlice(key string, defaultValue []int) ([]int, error)
- func (c *VConfig) GetProvideFolders() ([]folderMgr.FolderConfig, error)
- func (c *VConfig) GetString(key string, defaultValue string) (string, error)
- func (c *VConfig) GetStringMap(key string, defaultValue map[string]interface{}) (map[string]interface{}, error)
- func (c *VConfig) GetStringSlice(key string, defaultValue []string) ([]string, error)
- func (c *VConfig) SetProvideFolders(pf []folderMgr.FolderConfig)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProvideFolderContent = errors.New("provide_folder content type error")
View Source
var ErrProvideFolderNotSet = errors.New("provide_folder not find in config")
View Source
var ErrProvideFolderType = errors.New("provide_folder in config type error")
Functions ¶
This section is empty.
Types ¶
type VConfig ¶
var Config *VConfig
func ReadConfig ¶
func (*VConfig) GetConfigAsString ¶
func (*VConfig) GetFloat64 ¶
func (*VConfig) GetIntSlice ¶
func (*VConfig) GetProvideFolders ¶
func (c *VConfig) GetProvideFolders() ([]folderMgr.FolderConfig, error)
example read provide_folder
func (*VConfig) GetStringMap ¶
func (*VConfig) GetStringSlice ¶
func (*VConfig) SetProvideFolders ¶
func (c *VConfig) SetProvideFolders(pf []folderMgr.FolderConfig)
Click to show internal directories.
Click to hide internal directories.