Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDetectProtocol ¶ added in v0.1.2
func GetSSLCertExpiry ¶
Types ¶
type HTTPRequestOptions ¶ added in v0.1.8
type HTTPResponse ¶ added in v0.1.8
type HTTPResponse struct {
URL string
ResolvedIP string
StatusCode int
StatusText string
HTTPVersion string
ResponseHeaders http.Header
ResponseBody string
RequestHeaders http.Header
RequestBody string
Method string
ResponseTime time.Duration
TraceInfo *HttpTraceInfo
LastCheckTime time.Time
Error error
}
type HttpTraceInfo ¶
type NetworkConfig ¶ added in v0.0.7
type WebsiteCheckResult ¶ added in v0.0.7
type WebsiteCheckResult struct {
URL string
ResolvedIP string
IsUp bool
StatusCode int
ResponseTime time.Duration
TraceInfo *HttpTraceInfo
AssertionPassed bool
LastCheckTime time.Time
AssertText string
Method string
RequestHeaders http.Header
ResponseHeaders http.Header
RequestBody string
ResponseBody string
}
func CheckWebsite ¶
func CheckWebsite(urlStr string, config NetworkConfig) WebsiteCheckResult
Click to show internal directories.
Click to hide internal directories.