settings

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidatingDocker = errors.New("error validating docker settings")
	ErrValidatingHealth = errors.New("error validating health settings")
	ErrValidatingLog    = errors.New("error validating log settings")
)
View Source
var (
	ErrLogLevel = errors.New("invalid log level")
)

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Host string
}

type Health

type Health struct {
	Address string
}

type Log

type Log struct {
	Level string
}

type Settings

type Settings struct {
	Docker Docker
	Health Health
	Log    Log
}

func (*Settings) MergeWith

func (s *Settings) MergeWith(other Settings)

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

func (*Settings) Validate

func (s *Settings) Validate(validator govalid.Interface) error

Jump to

Keyboard shortcuts

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