load

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(loader ConfigurationLoader, fs afero.Fs, configFile string) error

Load function is responsible to load configuration from a file

func Unmarshal

Unmarshal function is responsible to unmarshal configuration

Types

type ConfigurationLoader

type ConfigurationLoader interface {
	ReadInConfig() error
	SetConfigFile(file string)
	SetFs(afero.Fs)
}

ConfigurationLoader interface is an interface to load configuration

type ConfigurationUnmarshaler

type ConfigurationUnmarshaler interface {
	Unmarshal(rawVal interface{}, opts ...viper.DecoderConfigOption) error
}

ConfigurationUnmarshaler interface is an interface to unmarshal configuration

Jump to

Keyboard shortcuts

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