Documentation ¶
Index ¶
- func GatherLatencies(url string, results chan<- Result, doneC <-chan struct{})
- func GetRecordIPv4(domainName string) ([]string, error)
- func PrintFunc(field, value string)
- func PrintSplitFunc(word, field string)
- func ResolveHttp(addr *Address, opt *ReqOptions) error
- func ResolveHttps(addr *Address, opt *ReqOptions) error
- func SetTransport(domainName, ip string) http.Transport
- type Address
- type ReqOptions
- type ResolveResponse
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatherLatencies ¶
The latency response value is obtained through a channel.
func GetRecordIPv4 ¶ added in v0.0.4
Get only ipv4 values, not ipv6
func PrintSplitFunc ¶
func PrintSplitFunc(word, field string)
Split long titles to fit output format.
func ResolveHttp ¶ added in v0.0.4
func ResolveHttp(addr *Address, opt *ReqOptions) error
Applied when using HTTP protocol.
func ResolveHttps ¶ added in v0.0.4
func ResolveHttps(addr *Address, opt *ReqOptions) error
Applied when using HTTPS protocol.
func SetTransport ¶ added in v0.0.4
Types ¶
type Address ¶ added in v0.0.4
type Address struct { IP string `json:"ip"` Url string `json:"url"` DomainName string `json:"domainName"` Target string `json:"target"` }
Structure with fields for address information.
type ReqOptions ¶ added in v0.0.4
type ReqOptions struct { Host string `json:"domain-host"` Authorization string `json:"authorization"` Referer string `json:"referer"` ByteRange string `json:"range"` Port int `json:"port"` Transport http.Transport }
A structure with fields required for request options, range is fixed as byte=0-1 by default.
type ResolveResponse ¶ added in v0.0.4
type ResolveResponse struct {
// contains filtered or unexported fields
}
Structure with response status code as field.
Click to show internal directories.
Click to hide internal directories.