Documentation
¶
Overview ¶
Package koanf defines a config parser implementation based on the koanf pkg
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a config parser using the viper library
func NewWithOptions ¶
func (Parser) Parse ¶
func (p Parser) Parse(configFile string) (config.ServiceConfig, error)
Parse reads and parses the configFile, and if there is no error calls initializes the config
func (Parser) ParseWithoutInit ¶
func (p Parser) ParseWithoutInit(configFile string) (config.ServiceConfig, error)
ParseWithoutInit reads and parses the configFile. The values of the file can be override with envvars, using the KRAKEND_ prefix
Click to show internal directories.
Click to hide internal directories.