Documentation ¶
Overview ¶
Package check identifies if a given site is up or not. Data is from https://isitup.org.
Example: check := check.New("google.com")
check.IsUp() check.IP() check.Verbose()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { Res *IsUpResponse Req *http.Request Client *http.Client // contains filtered or unexported fields }
Check custom type for our package to check if a site is up or not.
type IsUpResponse ¶
type IsUpResponse struct { Domain string `json:"domain"` Port int `json:"port"` StatusCode int `json:"status_code"` ResponseIP string `json:"response_ip"` ResponseCode int `json:"response_code"` ResponseTime float64 `json:"response_time"` }
IsUpResponse represents the result of the site to check if its okay
func (IsUpResponse) String ¶
func (iur IsUpResponse) String() string
Click to show internal directories.
Click to hide internal directories.