config

package
v9.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 7 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"`
	SecretFilePath string          `yaml:"secret_file"`
	Secret         string          `yaml:"secret"`
}

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