config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvTypeProduction  = "production"
	EnvTypeStaging     = "staging"
	EnvTypeDevelopment = "development"
)

Variables

This section is empty.

Functions

func ParseFlags

func ParseFlags(flags *Flags, args []string)

Types

type Config

type Config struct {
	WorkDir       string
	EnvType       string
	TogglAPIHost  string
	PipesAPIHost  string
	CorsWhitelist []string
	// contains filtered or unexported fields
}

func Load

func Load(f *Flags) *Config

type Flags

type Flags struct {
	Port          int
	WorkDir       string
	BugsnagAPIKey string
	Environment   string
	DbConnString  string
	ShowVersion   bool
	Debug         bool
}

Jump to

Keyboard shortcuts

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