Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNetworkOrHostDown ¶
IsNetworkOrHostDown - if there was a network error or if the host is down.
Types ¶
type Host ¶
Host - holds network host IP/name and its port.
func (Host) MarshalJSON ¶
MarshalJSON - converts Host into JSON data
func (*Host) UnmarshalJSON ¶
UnmarshalJSON - parses data into Host.
type URL ¶
URL - improved JSON friendly url.URL.
func ParseHTTPURL ¶
ParseHTTPURL - parses a string into HTTP URL, string is expected to be of form http:// or https://
func (URL) MarshalJSON ¶
MarshalJSON - converts to JSON string data.
func (*URL) UnmarshalJSON ¶
UnmarshalJSON - parses given data into URL.
Click to show internal directories.
Click to hide internal directories.