package
Version:
v0.0.0-...-0baba6e
Opens a new window with list of versions in this module.
Published: Mar 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const PublicIpPage = "https://1.1.1.1/cdn-cgi/trace"
Client is a wrapper around cloudflare.API.
Start starts the main application loop.
type Config struct {
ApiToken string `mapstructure:"api_token"`
RefreshInterval time.Duration `mapstructure:"refresh_interval"`
Zones []Zone `mapstructure:"zones"`
}
type Record struct {
Name string `mapstructure:"name"`
}
type Zone struct {
ZoneId string `mapstructure:"zone_id"`
Proxied bool `mapstructure:"proxied"`
Ipv6 bool `mapstructure:"ipv6"`
ExplicitRecords []Record `mapstructure:"explicit_records"`
}
func (zone Zone) ContainsExplicitRecords() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.