config

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file interface{}, config interface{}) error

func LoadWithCli

func LoadWithCli(key, value string, config interface{}) error

func LoadWithDefault

func LoadWithDefault(config interface{}) error

func LoadWithEnv

func LoadWithEnv(key string, config interface{}) error

func SetDefaultConfigPath

func SetDefaultConfigPath(path string)

Types

type Configurator

type Configurator struct {
	// contains filtered or unexported fields
}

func New

func New() *Configurator

func (*Configurator) Kernel

func (c *Configurator) Kernel() *viper.Viper

func (*Configurator) Load

func (c *Configurator) Load(file interface{}, config interface{}) error

func (*Configurator) LoadWithCli

func (c *Configurator) LoadWithCli(key, value string, config interface{}) error

func (*Configurator) LoadWithDefault

func (c *Configurator) LoadWithDefault(config interface{}) error

func (*Configurator) LoadWithEnv

func (c *Configurator) LoadWithEnv(key string, config interface{}) error

Jump to

Keyboard shortcuts

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