Expose goodread as a kit domain driver#6
Merged
Merged
Conversation
Add goodread/domain.go: a kit.Domain that registers itself from init(), so a multi-domain host (ant) enables Goodreads with a single blank import, database/sql style. Register installs the client factory and the read operations (book/author/series/list/user/genre/shelf/quote, the series/list/reviews list ops, and search); Classify/Locate reuse ids.go so the URI-native verbs touch no network. types.go gains kit:id, kit:link, and kit:body tags so records are URI-addressable and their graph edges are discoverable by reflection. The standalone goodread binary is untouched and still ships as-is. NOTE: go.mod carries a temporary replace to ../any-cli; it is swapped for a tagged version before this branch opens a PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
goodreadDomain so the package can be blank-imported as a database/sql-style driver — the basis for addressing Goodreads records by URI from a host likeant.goodread/domain.goregisters the Domain ininit(): schemegoodreads, the book/author/series record types, their resolver and list ops, and the URL↔URI mapping.kitstruct tags (id,link,body) so the host can mint URIs, follow typed edges, and render bodies.goodreadbinary and itsclipackage are untouched; the driver is purely additive.