koanf

package
v2.16.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

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 New

func New() Parser

New creates a new parser using the koanf library

func NewWithOptions

func NewWithOptions(delimiter string) Parser

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL