engine

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package engine wires the store's transactional ingest to the live bus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Store *store.Store
	Bus   *bus.Bus
	// Notify, when set, is called after any ingest that produced
	// continuations — the dispatcher's wake signal.
	Notify func()
}

func New

func New(st *store.Store, b *bus.Bus) *Engine

func (*Engine) Ingest

func (e *Engine) Ingest(ev core.Event) (store.IngestResult, error)

Ingest normalizes the event, runs the outbox transaction, and only then notifies live subscribers (durable first, notify second).

Jump to

Keyboard shortcuts

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