Documentation ¶
Overview ¶
Package check checks an IP address using various public services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHttpClient = HttpClient{/* contains filtered or unexported fields */}
Functions ¶
func GetConfigValue ¶
GetConfigValue tries to get value for key first from an environment variable then from a configuration file at $HOME/.checkip.yaml
func UpdateFile ¶
UpdateFile updates file from url if the file is older than a week. If file does not exist it downloads and creates it. compressFmt is the compression format of the file to download; gz or tgz. Empty string means no compression.
Types ¶
type EmptyInfo ¶ added in v0.10.1
type EmptyInfo struct { }
func (EmptyInfo) JsonString ¶ added in v0.10.1
type Error ¶ added in v0.10.1
type Error struct { ErrString string `json:"error"` // contains filtered or unexported fields }
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.