Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DDNS DDNSConfig `toml:"ddns"`
Lookup LookupConfig `toml:"lookup"`
Notify NotifyConfig `toml:"notify"`
}
func LoadConfig ¶
type DDNSConfig ¶
type DDNSConfig struct {
Provider string `toml:"provider"`
NoIP NoIPConfig `toml:"noip"`
DuckDNS DuckDNSConfig `toml:"duckdns"`
}
type DuckDNSConfig ¶
type LookupConfig ¶
type NoIPConfig ¶
type NotifyConfig ¶
type NotifyConfig struct {
Enabled bool `toml:"enabled"`
Email string `toml:"email"`
SMTP struct {
Host string `toml:"host"`
Port int `toml:"port"`
Username string `toml:"username"`
Password string `toml:"password"`
From string `toml:"from"`
UseTLS bool `toml:"use_tls"`
UseSTARTTLS bool `toml:"use_starttls"`
} `toml:"smtp"`
}
Click to show internal directories.
Click to hide internal directories.