Documentation ¶
Index ¶
- Constants
- Variables
- func Create(dsn *url.URL, v interface{}) (config.Config, error)
- func Load(conf string, v interface{}) config.Config
- func LoadEnv(v interface{}) config.Config
- func LoadFlag(v interface{}) config.Config
- func Register(name string, factory Factory)
- type Config
- type Factory
- type KeyValue
- type Registry
- type Source
- type Value
- type Watcher
Constants ¶
View Source
const KEY_NACOS = "NACOS_ADDRESS"
Variables ¶
View Source
var New = config.New
View Source
var WithDecoder = config.WithDecoder
View Source
var WithSource = config.WithSource
Functions ¶
Types ¶
type Registry ¶ added in v0.0.36
type Registry interface { Register(name string, factory Factory) Create(dsn *url.URL, v interface{}) (config.Config, error) }
Registry is the interface for callers to get registered middleware.
func NewRegistry ¶ added in v0.0.36
func NewRegistry() Registry
NewRegistry returns a new middleware registry.
Click to show internal directories.
Click to hide internal directories.