env

package
v0.0.0-...-fa7900d Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT 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 {
	NatsURL         string `env:"NATS_URL" required:"true" default:"nats://localhost:4222"`
	MeterNatsStream string `env:"METER_NATS_STREAM" required:"true" default:"meters"`
	HttpServerPort  string `env:"HTTP_SERVER_PORT" required:"true" default:"8080"`
	IsDev           bool
}

func LoadEnv

func LoadEnv() (*Env, error)

Jump to

Keyboard shortcuts

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