config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env map[string]string

func (Env) Set

func (e Env) Set()

func (Env) Unset

func (e Env) Unset()

type Option added in v0.1.1

type Option interface {
	Apply(*Options)
}

Option provides options when collecting configuration information.

func InjectFailure added in v0.5.0

func InjectFailure(err error) Option

InjectFailure instructs the config package using this option to return the error. This is useful for unit testing.

func WithPrefix added in v0.1.1

func WithPrefix(prefix string) Option

WithPrefix adds a prefix to the name of the enviroment variables being referenced.

type Options added in v0.1.1

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

func (*Options) InjectedFailure added in v0.5.0

func (o *Options) InjectedFailure() error

func (*Options) Prefix added in v0.1.1

func (o *Options) Prefix() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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