config

package
v0.0.0-...-36d1f36 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 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 {
	NameServer    string `yaml:"nameserver" envconfig:"NAMESERVER"`
	ApiKeyFile    string `envconfig:"API_KEY_FILE"`
	ApiSecretFile string `envconfig:"API_SECRET_FILE"`
	Record        struct {
		Domain    string `yaml:"domain" envconfig:"DOMAIN"`
		Subdomain string `yaml:"subdomain" envconfig:"SUBDOMAIN"`
		TTL       string `yaml:"ttl" envconfig:"TTL"`
		Id        string `yaml:"subdomainid" envconfig:"SUBDOMAIN_ID"`
	} `yaml:"record"`
	ApiCredentials struct {
		ApiKey string `yaml:"apikey" envconfig:"API_KEY"`
		Secret string `yaml:"apisecret" envconfig:"API_SECRET"`
	} `yaml:"apicredentials"`
}

func LoadConfig

func LoadConfig(path string) *Config

Jump to

Keyboard shortcuts

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