config

package
v0.0.0-...-2d52d2e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidValue returned when the value passed to Unmarshal is nil or not a
	// pointer to a struct.
	ErrInvalidValue = errors.New("value must be a non-nil pointer to a struct")

	// ErrUnsupportedType returned when a field with tag "env" is unsupported.
	ErrUnsupportedType = errors.New("field is an unsupported type")

	// ErrUnexportedField returned when a field with tag "env" is not exported.
	ErrUnexportedField = errors.New("field must be exported")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Providers []Provider
}

Config is foobar

func (Config) Unmarshal

func (c Config) Unmarshal(target interface{}) error

Unmarshal is foobar

type Provider

type Provider interface {
	Unmarshal(target interface{}) error
}

Provider is foobar

type ProviderEnvironment

type ProviderEnvironment struct{}

ProviderEnvironment is foobar

func (ProviderEnvironment) Unmarshal

func (p ProviderEnvironment) Unmarshal(target interface{}) error

Unmarshal is foobar

type ProviderJSON

type ProviderJSON struct {
	FileLocations []string
	Filename      string
}

ProviderJSON is foobar

func (ProviderJSON) Unmarshal

func (p ProviderJSON) Unmarshal(target interface{}) error

Unmarshal is foobar

Jump to

Keyboard shortcuts

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