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
Click to show internal directories.
Click to hide internal directories.