Documentation
¶
Index ¶
Constants ¶
View Source
const SkipThreshold = 5
SkipThreshold is how many consecutive identical statuses trigger a skip.
View Source
const TimeoutThreshold = 3
TimeoutThreshold is consecutive errors/timeouts before skip.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Skipped ¶
type Skipped struct {
Host string `json:"host"`
Path string `json:"path"`
Method string `json:"method"`
Reason string `json:"reason"`
}
Skipped describes an endpoint removed from the active-scan queue.
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker skips endpoints after repeated failure statuses or transport errors.
func (*Tracker) ShouldSkip ¶
ShouldSkip reports whether probing should stop for this endpoint.
func (*Tracker) SkippedList ¶
SkippedList returns all skipped endpoints for this run.
Click to show internal directories.
Click to hide internal directories.