Versions in this module Expand all Collapse all v0 v0.2.0 Aug 17, 2026 Changes in this version + const UserAgent + func HashBytes(b []byte) string + func HashString(s string) string + func LearnTTL(prev time.Duration, changed bool) time.Duration + func StaticTextHash(r *static.Result) string + type ChangeVerdict struct + Changed bool + Confident bool + Response *Response + Rung string + type Client struct + func New(opts Options) *Client + func (c *Client) CheckChanged(ctx context.Context, rawURL string, prior *Freshness) (*ChangeVerdict, error) + func (c *Client) Get(ctx context.Context, rawURL string, prior *Freshness) (*Response, error) + type Freshness struct + CheckedAt time.Time + ContentHash string + ETag string + LastModified string + RawHash string + TTL time.Duration + TextHash string + type Options struct + AcceptLanguage string + Guard *safety.Guard + MaxBytes int64 + MaxRedirects int + Timeout time.Duration + func DefaultOptions() Options + type Response struct + Blocked bool + BlockedReason string + Body []byte + ContentType string + ETag string + Elapsed time.Duration + FinalURL string + LastModified string + NotModified bool + Redirects []string + Status int + URL string + func (r *Response) IsHTML() bool