Documentation
¶
Index ¶
- func Main() int
- type Checker
- func (c *Checker) Check(ctx context.Context, page string)
- func (c *Checker) Crawl(ctx context.Context, page, referrer string)
- func (c *Checker) RateLimit() rate.Limit
- func (c *Checker) RecordResult(page, referrer string, err error, resp *http.Response)
- func (c *Checker) ReduceRateLimit()
- func (c *Checker) Results() []Result
- func (c *Checker) SetRateLimit(limit rate.Limit)
- type Result
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct {
Verbose bool
Output io.Writer
BaseURL *url.URL
HTTPClient *http.Client
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker() *Checker
func (*Checker) RecordResult ¶
func (*Checker) ReduceRateLimit ¶
func (c *Checker) ReduceRateLimit()
func (*Checker) SetRateLimit ¶
Click to show internal directories.
Click to hide internal directories.
