env

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() error

Types

type Env

type Env struct {
	Stage          Stage  `env:"STAGE,required"`
	FrontendOrigin string `env:"FRONTEND_ORIGIN,required"`
	ImagesBaseURL  string `env:"IMAGES_BASE_URL,required"`
	// Sentry
	SentryDSN string `env:"SENTRY_DSN,required"`
	// Google
	GoogleAPIKey   string `env:"GOOGLE_API_KEY,required"`
	SearchEngineID string `env:"SEARCH_ENGINE_ID,required"`
	// Azure
	AzureAPIKey   string `env:"AZURE_API_KEY,required"`
	AzureEndpoint string `env:"AZURE_ENDPOINT,required"`
	// Slack
	SlackOAuthToken string `env:"SLACK_OAUTH_TOKEN,required"`
	// SQS Queue
	SQSQueueURLNotifications string `env:"SQS_QUEUE_URL_NOTIFICATIONS,required"`
}
var (
	Vars Env
)

type Stage

type Stage string
const (
	StageLocal      Stage = "local"
	StageDev        Stage = "dev"
	StageProduction Stage = "prd"
)

Jump to

Keyboard shortcuts

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