Documentation
¶
Overview ¶
Package sources holds one subpackage per external API.
One package per source means rate limiting, retry, caching and response-shape quirks live in exactly one place per upstream. All of them dial out through internal/httpx.
Subpackages return their own types. Mapping those onto rows belongs to internal/graph — sources never imports store, and store never imports sources.
No network in unit tests: record real responses as fixtures and replay them through an http.RoundTripper stub.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package openalex is the client for the OpenAlex API — the source of works, metadata, resolved reference lists and open-access locations.
|
Package openalex is the client for the OpenAlex API — the source of works, metadata, resolved reference lists and open-access locations. |
|
Package pdfs downloads open-access PDFs from the links OpenAlex gives (ADR-013).
|
Package pdfs downloads open-access PDFs from the links OpenAlex gives (ADR-013). |
|
Package unpaywall resolves a DOI to a legal open-access PDF location, as the second opinion when the OA locations from OpenAlex come up empty.
|
Package unpaywall resolves a DOI to a legal open-access PDF location, as the second opinion when the OA locations from OpenAlex come up empty. |
|
Package zotero reads a user's existing Zotero library.
|
Package zotero reads a user's existing Zotero library. |
Click to show internal directories.
Click to hide internal directories.