Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInformation ¶
type BuildInformation struct { Version string `json:"version"` Commit string `json:"commit"` Created string `json:"buildDate"` }
func (BuildInformation) VersionString ¶
func (b BuildInformation) VersionString() string
type HTMLData ¶
type HTMLData struct {
Rows []HTMLRow
}
HTMLData is a list of HTML fields to be rendered. It is exported so that the HTML template engine can render it.
type HTMLRow ¶
type HTMLRow struct { Domain string Owner string Provider string IPVersion string Status string CurrentIP string PreviousIPs string }
HTMLRow contains HTML fields to be rendered It is exported so that the HTML template engine can render it.
type History ¶
type History []HistoryEvent // current and previous ips
History contains current and previous IP address for a particular record with the latest success time.
func (History) GetCurrentIP ¶
GetCurrentIP returns the current IP address (latest in history).
func (History) GetDurationSinceSuccess ¶
func (History) GetPreviousIPs ¶
GetPreviousIPs returns an antichronological list of previous IP addresses if there is any.
func (History) GetSuccessTime ¶
GetSuccessTime returns the latest success update time.
type HistoryEvent ¶
Click to show internal directories.
Click to hide internal directories.