Documentation
¶
Index ¶
- Constants
- func Decode(data []byte, format string) (Map, error)
- func DetectFormat(data []byte) string
- func Drivers() []string
- func FormatFromPath(file string) string
- func Redact(value Map) Map
- type Driver
- type Module
- func (c *Module) Close()
- func (c *Module) Config(Map)
- func (c *Module) Drivers() []string
- func (c *Module) LoadConfig() (Map, error)
- func (c *Module) Open()
- func (c *Module) Parse() (string, Map, error)
- func (c *Module) Register(name string, value Any)
- func (c *Module) RegisterDriver(name string, driver Driver)
- func (c *Module) Setup()
- func (c *Module) Start()
- func (c *Module) Stop()
Constants ¶
View Source
const ( KEY = "infrago-config" JSON = "json" TOML = "toml" YAML = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func DetectFormat ¶ added in v0.26.0
func FormatFromPath ¶ added in v0.26.0
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) LoadConfig ¶
func (*Module) Parse ¶
Parse reads env (INFRAGO_*) then args (--key) and returns params + driver name.
func (*Module) RegisterDriver ¶
Click to show internal directories.
Click to hide internal directories.