config

package
v8.4.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 4 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 {
	RootDir   string
	LogFile   string          `yaml:"log_file"`
	LogFormat string          `yaml:"log_format"`
	Migration MigrationConfig `yaml:"migration"`
}

func New

func New() (*Config, error)

func NewFromDir

func NewFromDir(dir string) (*Config, error)

type MigrationConfig

type MigrationConfig struct {
	Enabled  bool     `yaml:"enabled"`
	Features []string `yaml:"features"`
}

Jump to

Keyboard shortcuts

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