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 {
	GrpcPort    uint16 `env:"GRPC_PORT" required:"true"`
	MongoDbUri  string `env:"MONGO_DB_URI" required:"true"`
	MongoDbName string `env:"MONGO_DB_NAME" required:"true"`

	ActionRoleMapFile string `env:"ACTION_ROLE_MAP_FILE" required:"false"`

	ShowGRPCLogs bool `env:"SHOW_GRPC_LOGS" default:"false"`
}

func LoadEnv

func LoadEnv() (*Env, error)

Jump to

Keyboard shortcuts

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