Documentation
¶
Index ¶
- func CheckURL(url ParsingURL) (*http.Response, *html.Node, error)
- func ForEachNode(node *html.Node, f func(n *html.Node))
- func NewBadStatusCodeError(url ParsingURL, statusCode int) error
- func NewInvalidResponseTypeError(url ParsingURL) error
- func NewUnreachableSiteError(url ParsingURL) error
- type BrokenURL
- type ParsingURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckURL ¶
CheckURL checks passed url in arguments and returns specified error if it is incorrect.
func ForEachNode ¶
ForEachNode recursive runs throw DOM tree and finds links.
func NewBadStatusCodeError ¶
func NewBadStatusCodeError(url ParsingURL, statusCode int) error
func NewInvalidResponseTypeError ¶
func NewInvalidResponseTypeError(url ParsingURL) error
func NewUnreachableSiteError ¶
func NewUnreachableSiteError(url ParsingURL) error
Types ¶
type BrokenURL ¶
type BrokenURL struct { ParsingURL // Link URL Error error // Error of link }
BrokenURL is type for broken links.
func FindBrokenLinks ¶
func FindBrokenLinks(baseURL ParsingURL) []BrokenURL
FindBrokenLinks finds broken links on site and returns array of type BrokenURL as result.
Click to show internal directories.
Click to hide internal directories.