Documentation
¶
Index ¶
- type Auto
- func (t *Auto) GetBool(key string, def bool) bool
- func (t *Auto) GetFloat(key string, def float64) float64
- func (t *Auto) GetInt(key string, def int) int
- func (t *Auto) GetMapBool(key string, def map[string]bool) map[string]bool
- func (t *Auto) GetMapFloat(key string, def map[string]float64) map[string]float64
- func (t *Auto) GetMapInt(key string, def map[string]int) map[string]int
- func (t *Auto) GetMapString(key string, def map[string]string) map[string]string
- func (t *Auto) GetSliceBool(key string, def []bool) []bool
- func (t *Auto) GetSliceFloat(key string, def []float64) []float64
- func (t *Auto) GetSliceInt(key string, def []int) []int
- func (t *Auto) GetSliceString(key string, def []string) []string
- func (t *Auto) GetString(key string, def string) string
- func (t *Auto) Has(key string) bool
- func (t *Auto) Init(app interfaces.IEngine) 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 float64) float64
- func (t *Env) GetInt(key string, def int) int
- func (t *Env) GetMapBool(key string, def map[string]bool) map[string]bool
- func (t *Env) GetMapFloat(key string, def map[string]float64) map[string]float64
- func (t *Env) GetMapInt(key string, def map[string]int) map[string]int
- func (t *Env) GetMapString(key string, def map[string]string) map[string]string
- func (t *Env) GetSliceBool(key string, def []bool) []bool
- func (t *Env) GetSliceFloat(key string, def []float64) []float64
- func (t *Env) GetSliceInt(key string, def []int) []int
- func (t *Env) GetSliceString(key string, def []string) []string
- func (t *Env) GetString(key string, def string) string
- func (t *Env) Has(key string) bool
- func (t *Env) Init(app interfaces.IEngine) 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 float64) float64
- func (t *Mock) GetInt(key string, def int) int
- func (t *Mock) GetMapBool(key string, def map[string]bool) map[string]bool
- func (t *Mock) GetMapFloat(key string, def map[string]float64) map[string]float64
- func (t *Mock) GetMapInt(key string, def map[string]int) map[string]int
- func (t *Mock) GetMapString(key string, def map[string]string) map[string]string
- func (t *Mock) GetSliceBool(key string, def []bool) []bool
- func (t *Mock) GetSliceFloat(key string, def []float64) []float64
- func (t *Mock) GetSliceInt(key string, def []int) []int
- func (t *Mock) GetSliceString(key string, def []string) []string
- func (t *Mock) GetString(key string, def string) string
- func (t *Mock) Has(key string) bool
- func (t *Mock) Init(_ interfaces.IEngine) 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
func (*Auto) GetMapBool ¶ added in v0.1.1
func (*Auto) GetMapFloat ¶ added in v0.1.1
func (*Auto) GetMapString ¶ added in v0.1.1
func (*Auto) GetSliceBool ¶ added in v0.1.1
func (*Auto) GetSliceFloat ¶ added in v0.1.1
func (*Auto) GetSliceString ¶ added in v0.1.1
type AutoConfig ¶ added in v0.0.9
type AutoConfig struct {
FName string `yaml:"filename"`
}
type Env ¶
type Env struct {
Config EnvConfig
// contains filtered or unexported fields
}
func (*Env) GetMapBool ¶ added in v0.1.1
func (*Env) GetMapFloat ¶ added in v0.1.1
func (*Env) GetMapString ¶ added in v0.1.1
func (*Env) GetSliceBool ¶ added in v0.1.1
func (*Env) GetSliceFloat ¶ added in v0.1.1
func (*Env) GetSliceString ¶ added in v0.1.1
type Mock ¶
type Mock struct {
Data map[string]interface{}
}
func (*Mock) GetMapBool ¶ added in v0.1.1
func (*Mock) GetMapFloat ¶ added in v0.1.1
func (*Mock) GetMapString ¶ added in v0.1.1
func (*Mock) GetSliceBool ¶ added in v0.1.1
func (*Mock) GetSliceFloat ¶ added in v0.1.1
func (*Mock) GetSliceString ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.