dispatch

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: 10 Imported by: 0

Documentation

Overview

Package dispatch executes pending continuations: per-session FIFO, supervised adapter runs, results fed back as continuation.* events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

func New

func New(st *store.Store, reg adapter.Registry, ingest IngestFunc) *Dispatcher

func (*Dispatcher) Run

func (d *Dispatcher) Run(ctx context.Context)

Run recovers orphaned work, then dispatches until ctx is cancelled.

func (*Dispatcher) Wake

func (d *Dispatcher) Wake()

Wake nudges the dispatcher; safe from any goroutine, never blocks.

type IngestFunc

type IngestFunc func(core.Event) (store.IngestResult, error)

IngestFunc feeds result events back into the engine (chaining).

Jump to

Keyboard shortcuts

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