config

package
v0.0.0-...-8306d54 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 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 {
	GCPProject        string `envconfig:"GCP_PROJECT" required:"true"`
	GithubClientID    string `envconfig:"GH_CLIENT_ID" required:"true"`
	GithubSecretID    string `envconfig:"GH_SECRET_ID" required:"true"`
	GithubCallbackURL string `envconfig:"GH_CALLBACK_URL" required:"true"`
	// TODO: いい感じにする
	IsDev bool `envconfig:"APP_MODE" default:"true"`
}

func MustReadConfigFromEnv

func MustReadConfigFromEnv() *Config

Jump to

Keyboard shortcuts

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