Versions in this module Expand all Collapse all v0 v0.51.0 Nov 12, 2026 v0.50.0 Nov 7, 2026 v0.49.0 Nov 7, 2026 v0.48.0 Nov 6, 2026 v0.47.4 Nov 5, 2026 v0.47.3 Nov 5, 2026 Changes in this version + const AuthNone + const AuthRedirectLogin + const AuthRequired + const DefaultDeadline + const DefaultMaxBackoff + const DefaultMaxBody + const DefaultMaxHeaderBytes + const DefaultMaxRatio + const DefaultMinBackoff + const DefaultMinRate + const DefaultMinRateAfter + const DefaultRate + const DefaultRecalibrate + const DefaultRetries + const FrontedRate + const GapAuthWall + const GapBlocked + const GapBudget + const GapCatchAll + const GapEdgeProtected + const GapHostileResponse + const GapProtocol + const GapScopeFiltered + const GapThrottled + const GapUnstableBaseline + const LabelDirectory + const LabelError + const LabelForbidden + const LabelMethodNotAllowed + const LabelRedirect + const LabelsKey + const MaxRate + const ResponseKey + const ShapeBare + const ShapeDot + const ShapeSlash + var ErrStopped = errors.New("webdiff: the origin is stopped") + func Distance(a, b uint64) int + func Endpoint(origin string, h *Hit) ctis.Endpoint + func Family(contentType string) string + func LocationPattern(reqURL *url.URL, location string, tokens ...string) string + func Normalize(body string, tokens ...string) string + func ShapeOf(name string) string + func SimHash(s string) uint64 + func Split(p string) (dir, name, shape string) + type Hit struct + Auth string + ContentType string + Hash string + Labels []string + Path string + Size int + Status int + type Options struct + Deadline time.Duration + MaxBackoff time.Duration + MaxBody int + MaxHeaderBytes int + MaxRatio int + MaxRequests int + MinBackoff time.Duration + MinRate int + MinRateAfter time.Duration + Rand io.Reader + Rate float64 + RecalibrateAfter int + Retries int + type Prober struct + func New(client *http.Client, origin string, o Options) (*Prober, error) + func (p *Prober) AddGap(reason string, n int) + func (p *Prober) Canary(ctx context.Context) (edgeprotect.Verdict, error) + func (p *Prober) CaseInsensitive(ctx context.Context, h *Hit) (bool, error) + func (p *Prober) Check(ctx context.Context, cand string) (Result, error) + func (p *Prober) FoldsCase() bool + func (p *Prober) Gaps() map[string]int + func (p *Prober) Origin() string + func (p *Prober) Requests() int + func (p *Prober) Stopped() string + type Result struct + Hit *Hit + Skipped string + Verdict Verdict + type Sig struct + ContentType string + Family string + Hash string + Headers uint64 + Length int + Lines int + Location string + SimHash uint64 + Size int + Status int + Title string + Truncated bool + Words int + type Verdict string + const Different + const NoSignal + const Same