Documentation
¶
Overview ¶
Package eventpub provides the NATS-backed EventSink implementation that maps agent.Event to messaging.RunEvent and publishes to the appropriate JetStream lane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSinkFactory ¶
type EventSinkFactory interface {
NewEventSink(ctx RunEventContext) agent.EventSink
}
EventSinkFactory creates EventSinks bound to a specific run context.
type NATSEventSink ¶
type NATSEventSink struct {
// contains filtered or unexported fields
}
NATSEventSink publishes agent.Event as messaging.RunEvent via JetStream, routing high-frequency deltas to the run.stream lane and low-frequency state events to the run.state lane.
func NewNATSEventSink ¶
func NewNATSEventSink(bus eventbus.Publisher, eventContext RunEventContext) *NATSEventSink
NewNATSEventSink creates a new NATS-backed event sink.
Click to show internal directories.
Click to hide internal directories.