Documentation ¶
Index ¶
- type Auto
- func (t *Auto) GetBool(key string, def bool) bool
- func (t *Auto) GetFloat(key string, def float32) float32
- func (t *Auto) GetInt(key string, def int) int
- func (t *Auto) GetString(key string, def string) string
- func (t *Auto) Has(key string) bool
- func (t *Auto) Init(app interfaces.IService) error
- func (t *Auto) Stop() error
- type AutoConfig
- type Data
- type Env
- func (t *Env) GetBool(key string, def bool) bool
- func (t *Env) GetFloat(key string, def float32) float32
- func (t *Env) GetInt(key string, def int) int
- func (t *Env) GetString(key string, def string) string
- func (t *Env) Has(key string) bool
- func (t *Env) Init(app interfaces.IService) error
- func (t *Env) ParseFile(data []byte)
- func (t *Env) Stop() error
- type EnvConfig
- type Mock
- func (t *Mock) GetBool(key string, def bool) bool
- func (t *Mock) GetFloat(key string, def float32) float32
- func (t *Mock) GetInt(key string, def int) int
- func (t *Mock) GetString(key string, def string) string
- func (t *Mock) Has(key string) bool
- func (t *Mock) Init(_ interfaces.IService) error
- func (t *Mock) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auto ¶ added in v0.0.9
type Auto struct {
// contains filtered or unexported fields
}
func NewAuto ¶ added in v0.0.9
func NewAuto(cfg AutoConfig) *Auto
type AutoConfig ¶ added in v0.0.9
type AutoConfig struct {
FName string `yaml:"filename"`
}
Click to show internal directories.
Click to hide internal directories.