Documentation
¶
Overview ¶
Package storehook lets eventstore hand the read side of its stores to the consumer runtimes without exporting it.
eventstore registers its lookups at init time. A runtime imports eventstore, so the lookups are always registered before they are used. The returned values have exported methods on unexported types; the runtime asserts them to its own unexported port interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InMemoryFeed ¶
InMemoryFeed returns the feed of an eventstore InMemoryStore, or false when store is none.
func PgStore ¶
PgStore returns the read-side settings of an eventstore PgStore, or false when store is none.
func RegisterInMemoryFeed ¶
RegisterInMemoryFeed installs the lookup from an eventstore InMemoryStore to its feed. Only package eventstore calls it.
func RegisterPgStore ¶
RegisterPgStore installs the lookup from an eventstore PgStore to its read-side settings. Only package eventstore calls it.
Types ¶
This section is empty.