Skip to content

Reference

tilttek/homebrew-hub

Every public type of the package, with its role. The types marked internal may change in any version.

Homebrews

TypeRole
HomebrewHubThe service of the hub: publish, remix, endorse, withdraw an endorsement, retire, search, read and compare releases.
DraftWhat an author publishes: title, summary, tags, licence and the content of a version of a table's rules.
ReleaseOne published release: a version of tilttek/table-rules and its licence.
HomebrewA homebrew: its author, listing, releases, lineage, endorsers, retirement and version.
OriginThe credit a remix keeps of a release it comes from.
LicenceThe licence of a release, and the remixes it allows.
HomebrewSearchWhat a search asks: system, tag, author, retired or not, order and page.
SearchOrderThe order of a search: the most endorsed, or the most recently released.
View\HomebrewCardA homebrew as a list shows it.

Adoption

TypeRole
AdoptionThe service of a table's homebrews: adopt a release, drop a homebrew, read the subscriptions.
SubscriptionA table that follows a homebrew, at the release it adopted.
View\SubscriptionViewA homebrew a table follows, where the table stands, and what a later release changes.
View\SubscriptionStateUp to date, update available, or retired.

Content packs

TypeRole
Codec\DraftJsonA draft as a JSON document, written and read back.

Ports and stores

TypeRole
Contract\HomebrewStoreKeeps the homebrews at a version, and searches them.
Contract\SubscriptionStoreKeeps the subscriptions of the tables at a version.
Contract\TransactionsRuns the writes of an adoption as one.
Contract\HomebrewObserverTold of the events of the hub.
Store\InMemoryHomebrewStoreThe homebrews in memory, for tests.
Store\InMemorySubscriptionStoreThe subscriptions in memory, for tests.
Store\NoTransactionsRuns the work without a transaction, for tests.

Events

TypeRole
Event\HomebrewEventEvery event: the homebrew's identifier.
Event\ReleasePublishedA release was published.
Event\HomebrewRemixedA homebrew was made from a release of another one.
Event\HomebrewEndorsedA member endorsed a homebrew.
Event\EndorsementWithdrawnA member withdrew their endorsement.
Event\HomebrewRetiredA homebrew was retired.
Event\HomebrewAdoptedA table adopted a release.
Event\HomebrewDroppedA table stopped following a homebrew.

Exceptions

TypeRole
Exception\HomebrewExceptionEvery exception of the library.
Exception\InvalidHomebrewA value out of its shape or its bounds.
Exception\HomebrewRefusedA change not allowed in the state of the homebrew or of the table.
Exception\HomebrewNotFoundNo such homebrew, release or subscription.
Exception\HomebrewConflictThe homebrew or the subscription changed since it was read.

Internal

TypeRole
Internal\IdentifierThe shape of identifiers.
Internal\TextThe shape of the texts kept.