Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GoogleDomainsUpdateAPI is the endpoint to update Dynamic DNS records GoogleDomainsUpdateAPI string = "https://domains.google.com/nic/update" )
View Source
const ( // IpifyAPI is the endpoint to get the external IP IpifyAPI string = "https://api.ipify.org" )
Variables ¶
This section is empty.
Functions ¶
func FetchExternalIP ¶
Types ¶
type Credentials ¶
type Cron ¶
type Cron interface {
Start()
Shutdown()
Refresh(cfg *UpdateConfig) error
}
type IpifyResponse ¶
type IpifyResponse struct {
IP string `json:"ip"`
}
type UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.