config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT 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 {
	TargetPool       nonEmptyStringDecoder   `envconfig:"APP_EGRESS_POOL_NAME"`
	AllowedEgressIps allowedIngressIpDecoder `envconfig:"APP_EGRESS_ALLOWED_IPS"`
	DoToken          nonEmptyStringDecoder   `envconfig:"DIGITALOCEAN_ACCESS_TOKEN"`
	WatchTimeout     int64                   `envconfig:"NODES_WATCH_TIMEOUT" default:"1800"`
	RoutingJob       routingJobConfig
}

Config is application configuration

func CreateFromEnv

func CreateFromEnv() (conf Config, err error)

CreateFromEnv create new config instance from env variables

Jump to

Keyboard shortcuts

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