env

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	SupportEmail   string `env:"SUPPORT_EMAIL" required:"true"`
	SendgridApiKey string `env:"SENDGRID_API_KEY" required:"true"`
	GrpcPort       uint16 `env:"GRPC_PORT" required:"true"`

	AccountsWebInviteUrl   string `env:"ACCOUNTS_WEB_INVITE_URL" required:"true"`
	ProjectsWebInviteUrl   string `env:"PROJECTS_WEB_INVITE_URL" required:"true"`
	KloudliteConsoleWebUrl string `env:"KLOUDLITE_CONSOLE_WEB_URL" required:"true"`

	ResetPasswordWebUrl string `env:"RESET_PASSWORD_WEB_URL" required:"true"`
	VerifyEmailWebUrl   string `env:"VERIFY_EMAIL_WEB_URL" required:"true"`

	AccountCookieName string `env:"ACCOUNT_COOKIE_NAME" required:"true"`

	NatsURL string `env:"NATS_URL" required:"true"`

	// NATS:start
	NotificationNatsStream string `env:"NOTIFICATION_NATS_STREAM" required:"true"`

	IsDev bool

	SessionKVBucket string `env:"SESSION_KV_BUCKET" required:"true"`
	IAMGrpcAddr     string `env:"IAM_GRPC_ADDR" required:"true"`

	CommsDBUri  string `env:"MONGO_URI" required:"true"`
	CommsDBName string `env:"MONGO_DB_NAME" required:"true"`

	Port uint16 `env:"HTTP_PORT" required:"true"`
}

func LoadEnv

func LoadEnv() (*Env, error)

Jump to

Keyboard shortcuts

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