storehook

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 0 Imported by: 0

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

func InMemoryFeed(store any) (any, bool)

InMemoryFeed returns the feed of an eventstore InMemoryStore, or false when store is none.

func PgStore

func PgStore(store any) (any, bool)

PgStore returns the read-side settings of an eventstore PgStore, or false when store is none.

func RegisterInMemoryFeed

func RegisterInMemoryFeed(lookup func(store any) (any, bool))

RegisterInMemoryFeed installs the lookup from an eventstore InMemoryStore to its feed. Only package eventstore calls it.

func RegisterPgStore

func RegisterPgStore(lookup func(store any) (any, bool))

RegisterPgStore installs the lookup from an eventstore PgStore to its read-side settings. Only package eventstore calls it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL