Concepts
Each primitive has a short page: what it is, the problem it solves, how a feature uses it, and the API. The example throughout is a blog. A person writes a post and publishes it. Subscribers receive an email afterward.
| Primitive | Page |
|---|---|
| Entity | Entity |
| Schema | Schema |
| Use case | UseCase and UseCase.context |
| Port | Port |
| Adapter | Adapter |
| Error | Error, Error map, and Coded error |
| Event | Event |
| Event catalog | EventCatalog |
| Event handler | EventHandler |
Import them from hexok. A use case takes its ports in the constructor. You choose the HTTP library and assemble the object graph in your application.