env

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableKloudliteRegion

type AvailableKloudliteRegion struct {
	ID            string `json:"id"`
	DisplayName   string `json:"displayName"`
	Region        string `json:"region"`
	CloudProvider string `json:"cloudProvider"`
	Kubeconfig    string `json:"kubeconfig"`
	PublicDNSHost string `json:"publicDNSHost"`
}

type Env

type Env struct {
	HttpPort uint16 `env:"HTTP_PORT" required:"true"`
	HttpCors string `env:"CORS_ORIGINS" required:"false"`
	GrpcPort uint16 `env:"GRPC_PORT" required:"true"`

	DBName string `env:"MONGO_DB_NAME" required:"true"`
	DBUrl  string `env:"MONGO_URI" required:"true"`

	CookieDomain string `env:"COOKIE_DOMAIN" required:"true"`

	IamGrpcAddr   string `env:"IAM_GRPC_ADDR" required:"true"`
	CommsGrpcAddr string `env:"COMMS_GRPC_ADDR" required:"true"`
	// ContainerRegistryGrpcAddr string `env:"CONTAINER_REGISTRY_GRPC_ADDR" required:"true"`
	ConsoleGrpcAddr string `env:"CONSOLE_GRPC_ADDR" required:"true"`
	AuthGrpcAddr    string `env:"AUTH_GRPC_ADDR" required:"true"`

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

	IsDev              bool
	KubernetesApiProxy string `env:"KUBERNETES_API_PROXY"`

	AvailableKloudliteRegionsConfig string `env:"AVAILABLE_KLOUDLITE_REGIONS_CONFIG" required:"false"`
	AvailableKloudliteRegions       []AvailableKloudliteRegion
}

func LoadEnv

func LoadEnv() (*Env, error)

Jump to

Keyboard shortcuts

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