Documentation ¶
Index ¶
- Variables
- type Config
- type ServiceConfig
- func (sc *ServiceConfig) AddSection(section, typ string) error
- func (sc *ServiceConfig) Del(section, option string)
- func (sc *ServiceConfig) DelSection(section string)
- func (sc *ServiceConfig) Get(section, option string) ([]string, bool)
- func (sc *ServiceConfig) GetBool(section, option string) (bool, bool)
- func (sc *ServiceConfig) GetBoolDefault(section, option string, def bool) bool
- func (sc *ServiceConfig) GetInt(section, option string) (int, bool, error)
- func (sc *ServiceConfig) GetIntDefault(section, option string, def int) (int, error)
- func (sc *ServiceConfig) GetIntList(section, option string) ([]int, bool, error)
- func (sc *ServiceConfig) GetLast(section, option string) (string, bool)
- func (sc *ServiceConfig) GetSections(secType string) ([]string, bool)
- func (sc *ServiceConfig) GetStringDefault(section, option string, def string) string
- func (sc *ServiceConfig) Set(section, option string, values ...string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Service = new(config)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
GetServiceConfig(s service.Service) *ServiceConfig
}
type ServiceConfig ¶
type ServiceConfig struct {
// contains filtered or unexported fields
}
func (*ServiceConfig) AddSection ¶
func (sc *ServiceConfig) AddSection(section, typ string) error
func (*ServiceConfig) Del ¶
func (sc *ServiceConfig) Del(section, option string)
func (*ServiceConfig) DelSection ¶
func (sc *ServiceConfig) DelSection(section string)
func (*ServiceConfig) GetBool ¶
func (sc *ServiceConfig) GetBool(section, option string) (bool, bool)
func (*ServiceConfig) GetBoolDefault ¶
func (sc *ServiceConfig) GetBoolDefault(section, option string, def bool) bool
func (*ServiceConfig) GetInt ¶
func (sc *ServiceConfig) GetInt(section, option string) (int, bool, error)
func (*ServiceConfig) GetIntDefault ¶
func (sc *ServiceConfig) GetIntDefault(section, option string, def int) (int, error)
func (*ServiceConfig) GetIntList ¶
func (sc *ServiceConfig) GetIntList(section, option string) ([]int, bool, error)
func (*ServiceConfig) GetLast ¶
func (sc *ServiceConfig) GetLast(section, option string) (string, bool)
func (*ServiceConfig) GetSections ¶
func (sc *ServiceConfig) GetSections(secType string) ([]string, bool)
func (*ServiceConfig) GetStringDefault ¶
func (sc *ServiceConfig) GetStringDefault(section, option string, def string) string
Click to show internal directories.
Click to hide internal directories.