config

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Get(string) string
	GetOrDefault(string, string) string
}

func NewEnvFile

func NewEnvFile(configFolder string, logger logger) Config

func NewMockConfig added in v1.4.1

func NewMockConfig(configMap map[string]string) Config

type EnvLoader added in v1.3.0

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

func (*EnvLoader) Get added in v1.3.0

func (e *EnvLoader) Get(key string) string

func (*EnvLoader) GetOrDefault added in v1.3.0

func (e *EnvLoader) GetOrDefault(key, defaultValue string) string

Jump to

Keyboard shortcuts

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