config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func NewMockConfig(configMap map[string]string) Config

type EnvLoader

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

func (*EnvLoader) Get

func (*EnvLoader) Get(key string) string

func (*EnvLoader) GetOrDefault

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

Jump to

Keyboard shortcuts

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