config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flags   model.Flags
	App     model.App
	Db      model.Db                 `yaml:"db,omitempty"`
	Watch   model.Watch              `yaml:"watch,omitempty"`
	Notif   model.Notif              `yaml:"notif,omitempty"`
	RegOpts map[string]model.RegOpts `yaml:"regopts,omitempty"`
	Image   []model.Image            `yaml:"image,omitempty"`
}

Config holds configuration details

func Load

func Load(flags model.Flags, version string) (*Config, error)

Load returns Configuration struct

func (*Config) Display

func (cfg *Config) Display()

Display logs configuration in a pretty JSON format

Jump to

Keyboard shortcuts

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