Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StatusOK Means that direct access to the resource definitely exists. StatusOK = iota + 1 // StatusMaybeOK Means that direct access is available, but we are not sure about it. StatusMaybeOK // StatusProxyOK Means that access via a proxy works better than direct access. StatusProxyOK // StatusMaybeError Means that there are problems with direct access, and we are not sure if a proxy will help. StatusMaybeError // StatusError Means that there is definitely an issue with direct access and access via proxy. StatusError )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostChecker ¶
type HostChecker struct {
Handler func(rawURL string) (status int, body []byte, err error)
// contains filtered or unexported fields
}
func (*HostChecker) MarshalJSON ¶
func (h *HostChecker) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.