config

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	FName string
	// contains filtered or unexported fields
}

func (*Env) GetBool

func (t *Env) GetBool(key string, def bool) bool

func (*Env) GetFloat

func (t *Env) GetFloat(key string, def float32) float32

func (*Env) GetInt

func (t *Env) GetInt(key string, def int) int

func (*Env) GetString

func (t *Env) GetString(key string, def string) string

func (*Env) Has

func (t *Env) Has(key string) bool

func (*Env) Init

func (t *Env) Init(app interfaces.IService) error

func (*Env) ParseFile

func (t *Env) ParseFile(data []byte)

func (*Env) Stop

func (t *Env) Stop() error

type Mock

type Mock struct {
	Data map[string]string
}

func (*Mock) GetBool

func (t *Mock) GetBool(key string, def bool) bool

func (*Mock) GetFloat

func (t *Mock) GetFloat(key string, def float32) float32

func (*Mock) GetInt

func (t *Mock) GetInt(key string, def int) int

func (*Mock) GetString

func (t *Mock) GetString(key string, def string) string

func (*Mock) Has

func (t *Mock) Has(key string) bool

func (*Mock) Init

func (t *Mock) Init(app interfaces.IService) error

func (*Mock) Stop

func (t *Mock) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL