Documentation
¶
Index ¶
- type FileAutoCheck
- type TierConf
- func (m *TierConf) GetConf() map[string]map[string]string
- func (m *TierConf) Load(cfg []byte) error
- func (m *TierConf) LoadFromConf(cfg map[string]map[string]string)
- func (m *TierConf) LoadFromFile(conf string) error
- func (m *TierConf) LoadFromOneFile(conf string) error
- func (m *TierConf) StringCheck() (string, error)
- func (m *TierConf) ToBool(section string, property string) (bool, error)
- func (m *TierConf) ToBoolWithDefault(section string, property string, deft bool) bool
- func (m *TierConf) ToFloat32(section string, property string) (float32, error)
- func (m *TierConf) ToFloat64(section string, property string) (float64, error)
- func (m *TierConf) ToInt(section string, property string) (int, error)
- func (m *TierConf) ToInt32(section string, property string) (int32, error)
- func (m *TierConf) ToInt64(section string, property string) (int64, error)
- func (m *TierConf) ToIntWithDefault(section string, property string, deft int) int
- func (m *TierConf) ToSection(section string) (map[string]string, error)
- func (m *TierConf) ToSliceInt(section string, property string, sep string) ([]int, error)
- func (m *TierConf) ToSliceString(section string, property string, sep string) ([]string, error)
- func (m *TierConf) ToSliceStringWithDefault(section string, property string, sep string, deft []string) []string
- func (m *TierConf) ToString(section string, property string) (string, error)
- func (m *TierConf) ToStringWithDefault(section string, property string, deft string) string
- func (m *TierConf) ToUint32(section string, property string) (uint32, error)
- func (m *TierConf) ToUint64(section string, property string) (uint64, error)
- func (m *TierConf) Unmarshal(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileAutoCheck ¶
type FileAutoCheck struct {
// contains filtered or unexported fields
}
func NewFileAutoCheck ¶
func NewFileAutoCheck(file string) *FileAutoCheck
type TierConf ¶
type TierConf struct {
// contains filtered or unexported fields
}
func NewTierConf ¶
func NewTierConf() *TierConf
func (*TierConf) LoadFromFile ¶
func (*TierConf) LoadFromOneFile ¶
func (*TierConf) StringCheck ¶
func (*TierConf) ToBoolWithDefault ¶
func (*TierConf) ToIntWithDefault ¶
func (*TierConf) ToSliceInt ¶
func (*TierConf) ToSliceString ¶
func (*TierConf) ToSliceStringWithDefault ¶
func (*TierConf) ToStringWithDefault ¶
Click to show internal directories.
Click to hide internal directories.