env

package
v0.0.0-...-6d1408b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv() error

Types

type Env

type Env struct {
	DatabaseDriver   string `env:"DATABASE_DRIVER" env-required:"true"`
	DatabaseEndpoint string `env:"DATABASE_ENDPOINT" env-required:"true"`

	S3Bucket          string `env:"S3_BUCKET" env-required:"true"`
	S3AccessKey       string `env:"S3_ACCESS_KEY" env-required:"true"`
	S3SecretKey       string `env:"S3_SECRET_KEY" env-required:"true"`
	S3Endpoint        string `env:"S3_ENDPOINT" env-required:"true"`
	S3HTTPSEnabled    bool   `env:"S3_HTTPS_ENABLED" env-default:"false"`
	SubmissionsFolder string `env:"SUBMISSIONS_FOLDER" env-required:"true"`

	NSQEndpoint        string `env:"NSQ_ENDPOINT" env-required:"true"`
	NSQLookupdEndpoint string `env:"NSQ_LOOKUPD" env-required:"true"`

	GithubOAuthClientId     string `env:"GITHUB_OAUTH_CLIENT_ID" env-required:"true"`
	GithubOAuthClientSecret string `env:"GITHUB_OAUTH_CLIENT_SECRET" env-required:"true"`

	GitlabOAuthClientId     string `env:"GITLAB_OAUTH_CLIENT_ID" env-required:"true"`
	GitlabOAuthClientSecret string `env:"GITLAB_OAUTH_CLIENT_SECRET" env-required:"true"`

	StripeSecretKey             string `env:"STRIPE_SECRET_KEY" env-required:"true"`
	StripeTierProBase           string `env:"STRIPE_TIER_PRO_BASE" env-required:"true"`
	StripeTierProMetered        string `env:"STRIPE_TIER_PRO_METERED" env-required:"true"`
	StripeTierEnterpriseBase    string `env:"STRIPE_TIER_ENTERPRISE_BASE" env-required:"true"`
	StripeTierEnterpriseMetered string `env:"STRIPE_TIER_ENTERPRISE_METERED" env-required:"true"`
	StripeWebhookSecret         string `env:"STRIPE_WEBHOOK_SECRET" env-required:"true"`

	LogFormat string `env:"LOG_FORMAT" env-default:"json"`
	LogLevel  string `env:"LOG_LEVEL" env-default:"info"`
	SentryDSN string `env:"SENTRY_DSN"`
	Env       string `env:"ENV" env-required:"true"`
}

func Get

func Get() *Env

Jump to

Keyboard shortcuts

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