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: 1 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 {
	NatsUrl                    string `env:"NATS_URL" required:"true"`
	NatsSendToAgentStream      string `env:"NATS_SEND_TO_AGENT_STREAM" required:"true"`
	NatsReceiveFromAgentStream string `env:"NATS_RECEIVE_FROM_AGENT_STREAM" required:"true"`

	PlatformAccessToken string `env:"PLATFORM_ACCESS_TOKEN" required:"true"`

	DbName string `env:"MONGO_DB_NAME" required:"true"`
	DbUri  string `env:"MONGO_URI"  required:"true"`

	InfraGRPCAddr string `env:"INFRA_GRPC_ADDR" required:"true"`

	ExternalGrpcPort uint16 `env:"EXTERNAL_GRPC_PORT" required:"true"`
	InternalGrpcPort uint16 `env:"INTERNAL_GRPC_PORT" required:"true"`

	GrpcMessageProtocolVersion string `env:"GRPC_MESSAGE_PROTOCOL_VERSION" default:"1"`

	HttpPort uint16 `env:"HTTP_PORT" required:"true"`

	VectorGrpcAddr string `env:"VECTOR_GRPC_ADDR" required:"true"`

	TokenHashingSecret string `env:"TOKEN_HASHING_SECRET" required:"true"`
	IsDev              bool
}

func LoadEnvOrDie

func LoadEnvOrDie() *Env

Jump to

Keyboard shortcuts

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