Documentation
¶
Overview ¶
Package membroker provides an in-memory broker adapter for runtime/contracts.
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 stores published events in memory and exposes them as worker batches. It is intended for tests, local development, and single-process apps.
func (*Broker) PublishEvents ¶
PublishEvents appends events to the broker queue.
func (*Broker) ReceiveEventBatch ¶
ReceiveEventBatch returns the next queued batch. Ack removes the delivered records; Nack leaves them queued for retry.
Click to show internal directories.
Click to hide internal directories.