config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedDomains

type AllowedDomains map[string][]*net.IPNet

func (*AllowedDomains) UnmarshalText

func (out *AllowedDomains) UnmarshalText(text []byte) error

type Config

type Config struct {
	Token          string         `env:"API_TOKEN,unset"`
	Timeout        int            `env:"API_TIMEOUT" envDefault:"15"`
	AllowedDomains AllowedDomains `env:"ALLOWED_DOMAINS"`
	RecordTTL      int            `env:"RECORD_TTL" envDefault:"60"`
	ListenAddr     string         `env:"LISTEN_ADDR" envDefault:":8081"`
	TrustedProxies []string       `env:"TRUSTED_PROXIES" envDefault:""`
	Debug          bool           `env:"DEBUG" envDefault:"false"`
}

Jump to

Keyboard shortcuts

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