Documentation
¶
Overview ¶
Package observation provides internal fan-out plumbing without depending on the queue package's public event model.
Index ¶
Constants ¶
View Source
const EventSchemaVersion = 1
EventSchemaVersion identifies the canonical observer event envelope emitted by queue, worker, and workflow layers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink[T any] struct { // contains filtered or unexported fields }
Sink fans one typed value out to observers that may be added during runtime construction.
func (*Sink[T]) Add ¶
Add appends an observer while preserving registration order for each emitted value.
func (*Sink[T]) HasObservers ¶
HasObservers reports whether emitting through the sink can reach an observer.
Click to show internal directories.
Click to hide internal directories.