config

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 5 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 (*EnvLoader) Get(key string) string

func (*EnvLoader) GetOrDefault added in v1.3.0

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