Versions in this module Expand all Collapse all v1 v1.0.1 Jun 12, 2026 v1.0.0 Jun 9, 2026 Changes in this version + func DefaultPath() (string, error) + type Cache struct + func NoOp() *Cache + func Open(path string) (*Cache, error) + func (c *Cache) Clear() error + func (c *Cache) Close() error + func (c *Cache) Fetching(fetch FetchFunc) FetchFunc + func (c *Cache) GetDocument(accession string) (*model.Document, bool) + func (c *Cache) GetRaw(url string) ([]byte, bool) + func (c *Cache) Path() string + func (c *Cache) PutDocument(accession string, doc *model.Document) error + func (c *Cache) PutRaw(url string, body []byte) error + type FetchFunc func(ctx context.Context, url string) ([]byte, error)