configuration

package
v0.0.0-...-0c8a1ae Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Unlicense Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver map[string]Parameters

func (Driver) MarshalYAML

func (driver Driver) MarshalYAML() (interface{}, error)

func (Driver) Parameters

func (driver Driver) Parameters() Parameters

func (Driver) Type

func (driver Driver) Type() string

func (*Driver) UnmarshalText

func (driver *Driver) UnmarshalText(text []byte) error

func (*Driver) UnmarshalYAML

func (driver *Driver) UnmarshalYAML(unmarshal func(interface{}) error) error

type LogLevel

type LogLevel string

func (*LogLevel) UnmarshalYAML

func (logLevel *LogLevel) UnmarshalYAML(unmarshal func(interface{}) error) error

type Parameters

type Parameters map[string]interface{}

type Parser

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

func NewParser

func NewParser(prefix string, parseInfos []VersionedParseInfo) *Parser

func (*Parser) Parse

func (p *Parser) Parse(in []byte, v interface{}) error

type Resolver

type Resolver struct {
	PathEnvKey  string
	DefaultPath string
}

func (*Resolver) Resolve

func (r *Resolver) Resolve(args []string) (*os.File, error)

type Version

type Version string

func MajorMinorVersion

func MajorMinorVersion(major uint, minor uint) Version

func (Version) Major

func (version Version) Major() uint

func (Version) Minor

func (version Version) Minor() uint

func (*Version) UnmarshalYAML

func (version *Version) UnmarshalYAML(unmarshal func(interface{}) error) error

type VersionedParseInfo

type VersionedParseInfo struct {
	Version Version

	ParseAs reflect.Type

	ConversionFunc func(interface{}) (interface{}, error)
}

Jump to

Keyboard shortcuts

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