summaryrefslogtreecommitdiff
path: root/brokenlinks.go
diff options
context:
space:
mode:
Diffstat (limited to 'brokenlinks.go')
-rw-r--r--brokenlinks.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/brokenlinks.go b/brokenlinks.go
index 768216d..69a14ad 100644
--- a/brokenlinks.go
+++ b/brokenlinks.go
@@ -15,20 +15,20 @@ const Version = `0.1.0`
// reachable during GET or HEAD, either timeout or IP or domain not exist.
const StatusBadLink = 700
+// Broken store the broken link, HTTP status code, and the error message that
+// cause it.
+type Broken struct {
+ Link string `json:"link"`
+ Error string `json:"error,omitempty"`
+ Code int `json:"code"`
+}
+
// BrokenlinksOptions define the options for scanning broken links.
type BrokenlinksOptions struct {
Url string
IsVerbose bool
}
-// Broken store the broken link, HTTP status code, and the error message that
-// cause it.
-type Broken struct {
- Link string
- Error string `json:"omitempty"`
- Code int
-}
-
// BrokenlinksResult store the result of scanning for broken links.
type BrokenlinksResult struct {
// PageLinks store the page and its broken links.