config

package
v8.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 6 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"`
	GitlabUrl     string          `yaml:"gitlab_url"`
	GitlabTracing string          `yaml:"gitlab_tracing"`
}

func New

func New() (*Config, error)

func NewFromDir

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

func (*Config) FeatureEnabled

func (c *Config) FeatureEnabled(featureName string) bool

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