Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownSourceType = errors.New("unknown type")
ErrUnknownSourceType when source type not string-path or io.Reader
Functions ¶
func Load ¶
func Load(src, config interface{}) error
Load config from source (like io.Reader / string path) and validate it (https://github.com/go-playground/validator)
Types ¶
type Database ¶ added in v1.6.6
type Database struct {
Address string `yaml:"address" validate:"required"`
Database string `yaml:"database" validate:"required"`
User string `yaml:"user" validate:"required"`
Password string `yaml:"password" validate:"required"`
}
Database base configuration:
type Proxy ¶ added in v1.6.6
type Proxy string
Proxy default configuration
Click to show internal directories.
Click to hide internal directories.