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: 1 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 {
	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