config

package
v0.0.0-...-b5ea2e0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 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