Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCodec = errors.New("invalid codec name", errors.WithVendor(errVendor), errors.WithCode(-1)) ErrJSONCodec = errors.New("scf4go basic running mode must import json codec implement", errors.WithVendor(errVendor), errors.WithCode(-1)) )
Errors
Functions ¶
Types ¶
type Codec ¶
type Codec interface {
Encode(interface{}) ([]byte, error)
Decode([]byte, interface{}) error
Name() string
}
Codec .
type Config ¶
type Config interface {
Values
Close()
Load(readers ...Reader) error
Reload() error
SubConfig(path ...string) Config
Prefix() []string
}
Config the config facade
Click to show internal directories.
Click to hide internal directories.