Discover Packages
github.com/sbroekhoven/httpredirects
package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jun 10, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
httpredirects
Get HTTP redirect with hosts and IP addresses
Expand ▾
Collapse ▴
Documentation
¶
type Data struct {
URL string `json:"url,omitempty"`
Redirects []*Redirects `json:"redirects,omitempty"`
Hosts []*Hosts `json:"hosts,omitempty"`
Error bool `json:"error,omitempty"`
ErrorMessage string `json:"errormessage,omitempty"`
}
Data struct
type Hosts struct {
Hostname string `json:"hostname,omitempty"`
IPv4 []string `json:"ipv4,omitempty"`
IPv6 []string `json:"ipv6,omitempty"`
CNAME string `json:"cname,omitempty"`
Error bool `json:"error,omitempty"`
ErrorMessage string `json:"errormessage,omitempty"`
}
Hosts struct
type Redirects struct {
Number int `json:"number"`
StatusCode int `json:"statuscode,omitempty"`
URL string `json:"url,omitempty"`
Protocol string `json:"protocol,omitempty"`
}
Redirects struct
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.