config

package
v0.0.0-...-7ba98d9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 2 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 {
	Port           string `env:"PORT" envDefault:"3000"`
	ClientID       string `env:"GITHUB_CLIENT_ID"`
	ClientSecret   string `env:"GITHUB_CLIENT_SECRET"`
	OauthState     string `env:"OAUTH_STATE"`
	DatabaseURL    string `env:"DATABASE_URL" envDefault:"postgres://localhost:5432/watchub?sslmode=disable"`
	SendgridAPIKey string `env:"SENDGRID_API_KEY"`
	Schedule       string `env:"SCHEDULE" envDefault:"@every 1m"`
	SessionSecret  string `env:"SESSION_SECRET" envDefault:"super-secret-session-secret"`
	SessionName    string `env:"SESSION_NAME" envDefault:"JSESSIONID"`
}

Config of the app

func Get

func Get() (cfg Config)

Get the config

Jump to

Keyboard shortcuts

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