Reference
tilttek/homebrew-hubEvery public type of the package, with its role. The types marked internal may change in any version.
Homebrews
| Type | Role |
|---|---|
HomebrewHub | The service of the hub: publish, remix, endorse, withdraw an endorsement, retire, search, read and compare releases. |
Draft | What an author publishes: title, summary, tags, licence and the content of a version of a table's rules. |
Release | One published release: a version of tilttek/table-rules and its licence. |
Homebrew | A homebrew: its author, listing, releases, lineage, endorsers, retirement and version. |
Origin | The credit a remix keeps of a release it comes from. |
Licence | The licence of a release, and the remixes it allows. |
HomebrewSearch | What a search asks: system, tag, author, retired or not, order and page. |
SearchOrder | The order of a search: the most endorsed, or the most recently released. |
View\HomebrewCard | A homebrew as a list shows it. |
Adoption
| Type | Role |
|---|---|
Adoption | The service of a table's homebrews: adopt a release, drop a homebrew, read the subscriptions. |
Subscription | A table that follows a homebrew, at the release it adopted. |
View\SubscriptionView | A homebrew a table follows, where the table stands, and what a later release changes. |
View\SubscriptionState | Up to date, update available, or retired. |
Content packs
| Type | Role |
|---|---|
Codec\DraftJson | A draft as a JSON document, written and read back. |
Ports and stores
| Type | Role |
|---|---|
Contract\HomebrewStore | Keeps the homebrews at a version, and searches them. |
Contract\SubscriptionStore | Keeps the subscriptions of the tables at a version. |
Contract\Transactions | Runs the writes of an adoption as one. |
Contract\HomebrewObserver | Told of the events of the hub. |
Store\InMemoryHomebrewStore | The homebrews in memory, for tests. |
Store\InMemorySubscriptionStore | The subscriptions in memory, for tests. |
Store\NoTransactions | Runs the work without a transaction, for tests. |
Events
| Type | Role |
|---|---|
Event\HomebrewEvent | Every event: the homebrew's identifier. |
Event\ReleasePublished | A release was published. |
Event\HomebrewRemixed | A homebrew was made from a release of another one. |
Event\HomebrewEndorsed | A member endorsed a homebrew. |
Event\EndorsementWithdrawn | A member withdrew their endorsement. |
Event\HomebrewRetired | A homebrew was retired. |
Event\HomebrewAdopted | A table adopted a release. |
Event\HomebrewDropped | A table stopped following a homebrew. |
Exceptions
| Type | Role |
|---|---|
Exception\HomebrewException | Every exception of the library. |
Exception\InvalidHomebrew | A value out of its shape or its bounds. |
Exception\HomebrewRefused | A change not allowed in the state of the homebrew or of the table. |
Exception\HomebrewNotFound | No such homebrew, release or subscription. |
Exception\HomebrewConflict | The homebrew or the subscription changed since it was read. |
Internal
| Type | Role |
|---|---|
Internal\Identifier | The shape of identifiers. |
Internal\Text | The shape of the texts kept. |