config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Env            AppEnv `default:"local" envconfig:"APP_ENV"`
	Port           int    `default:"6000"`
	GCPProjectID   string `default:"local" envconfig:"GCP_PROJECT_ID"`
	SendGridAPIKey string `envconfig:"SEND_GRID_API_KEY"`
}

func NewAppConfig

func NewAppConfig() (*AppConfig, error)

func (AppConfig) IsDeployedEnv

func (a AppConfig) IsDeployedEnv() bool

type AppEnv

type AppEnv string
const (
	Local AppEnv = "local"
	Test  AppEnv = "test"
	Dev   AppEnv = "dev"
	Prod  AppEnv = "prod"
)

Jump to

Keyboard shortcuts

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