configuration

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeConfig

func InitializeConfig(allowedConfigKey []ConfigKey, configName, configPath, envPrefix string)

InitializeConfig ...

Types

type ConfigKey

type ConfigKey struct {
	Type         ConfigKeyType
	Name         string
	DefaultValue interface{}
	Description  string
}

ConfigKey represents the definition of a config flag

type ConfigKeyType

type ConfigKeyType int

ConfigKeyType defines all configuration key types

const (
	// StringFlag key for key-value flag
	StringFlag ConfigKeyType = iota + 1
	// StringSliceFlag for key-[values] flag
	StringSliceFlag
)

Jump to

Keyboard shortcuts

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