Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2026 v0.1.0 Oct 15, 2026 Changes in this version + func Key(req *http.Request) string + type Entry struct + Body json.RawMessage + ContentType string + ETag string + FetchedAt time.Time + URL string + type Result struct + FetchedAt time.Time + Stale bool + type Store struct + Dir string + func (s Store) Clear() error + func (s Store) Get(key string) *Entry + func (s Store) Lock(ctx context.Context, key string) (unlock func(), err error) + func (s Store) Put(key string, e *Entry) error + type Transport struct + MaxAge func(req *http.Request) time.Duration + Next http.RoundTripper + Now func() time.Time + Store Store + func (t *Transport) Last() Result + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)