configs

package
v0.0.0-...-03e2b80 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadENV

func ReadENV(cfg *Config)

Types

type App

type App struct {
	Version  string `envconfig:"APP_VERSION" default:"unknown"`
	GRPCPort string `envconfig:"APP_GRPC_PORT" default:"5000"`
	LogLevel string `envconfig:"APP_LOG_LEVEL" default:"INFO"`
}

type Config

type Config struct {
	App           App
	Deployment    Deployment
	MonitorServer MonitorServer
}

type Deployment

type Deployment struct {
	Name string `envconfig:"DEPLOYMENT_NAME" default:"unknown"`
}

type MonitorServer

type MonitorServer struct {
	Port              string        `envconfig:"MONITOR_SERVER_PORT" default:"9090"`
	ReadHeaderTimeout time.Duration `envconfig:"MONITOR_SERVER_READ_HEADER_TIMEOUT" default:"15s"`
}

Jump to

Keyboard shortcuts

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