Documentation
¶
Overview ¶
Package mock is the canonical in-process events.Broker: synchronous, in-memory fan-out. It is both the reference implementation module-to-module delivery uses in a single binary, and the test double consumers wire in place of a real broker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker delivers synchronously, in subscription order, to every Subscriber registered for an Event's Topic at the moment Publish runs. It never crosses a process boundary — that is github.com/tinywasm/sse's job.
Click to show internal directories.
Click to hide internal directories.