env

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.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 Env

type Env struct {
	Port uint16 `env:"HTTP_PORT" required:"true"`

	IotDeviceDBUri  string `env:"MONGO_URI" required:"true"`
	IotDeviceDBName string `env:"MONGO_DB_NAME" required:"true"`

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

	// NATS:start
	NatsURL string `env:"NATS_URL" required:"true"`

	IsDev              bool
	KubernetesApiProxy string `env:"KUBERNETES_API_PROXY"`

	SessionKVBucket         string `env:"SESSION_KV_BUCKET" required:"true"`
	IOTConsoleCacheKVBucket string `env:"IOT_CONSOLE_CACHE_KV_BUCKET" 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