config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath       = "config"
	LogLevel         = "log.level"
	LogFormat        = "log.format"
	ListenAddr       = "listen.addr"
	Dev              = "dev"
	DatabaseURL      = "database.url"
	HTTPReadTimeout  = "http.read.timeout"
	HTTPWriteTimeout = "http.write.timeout"
	GHClientID       = "gh.client.id"
	GHClientSecret   = "gh.client.secret"
	SessionKey       = "session.key"
	AllowedOrigins   = "allowed.origins"
	SendGridAPIKey   = "sendgrid.api.key"
	DomainName       = "domain.name"
)

Configuration values that may be provided in a configuration file, as environment variables or via CLI flags. Note, not all configurations may be passed as CLI flags. All keys are dot delimitated except for environment variables which are snake-cased and must be prefixed with ATLAS_*.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Bool(path string) bool
	String(path string) string
	Int(path string) int
	Ints(path string) []int
	Duration(path string) time.Duration
}

Config defines a configuration abstraction so we don't rely on any specific concrete configuration manager.

Jump to

Keyboard shortcuts

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