Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SchemaErr = errors.New("schema error")
)
Functions ¶
This section is empty.
Types ¶
type Confd ¶
type Confd struct { loader.ConfigLoader format.Marshaler config.Config // contains filtered or unexported fields }
Confd conf manager
func NewConfd ¶
func NewConfd(opts ...OptionFunc) *Confd
func (*Confd) LoadConfig ¶
LoadConfig load config schema {source}:{format}:{key} source file, etcd,... format ymal, json,ini... key can read config information, eg ./xx.yml...
type OptionFunc ¶
type OptionFunc func(*Options)
func WithConfer ¶
func WithConfer(confer string) OptionFunc
func WithSchema ¶
func WithSchema(schema string) OptionFunc
Click to show internal directories.
Click to hide internal directories.