config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment string `envconfig:"GO_ENV"`
	Default     struct {
		Record struct {
			TTL int `envconfig:"NATM_DEFAULT_RECORD_TTL"`
		}
		Generator struct {
			Type string `envconfig:"NATM_DEFAULT_GENERATOR_TYPE"`
		}
	}
	Bind struct {
		Metrics     string `envconfig:"NATM_BIND_METRICS"`
		HealthProbe string `envconfig:"NATM_BIND_HEALTH_PROBE"`
	}
}

func GetConfig

func GetConfig() *Config

type EnvKey

type EnvKey = string
const (
	GO_ENV EnvKey = "GO_ENV"
)

Jump to

Keyboard shortcuts

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