Documentation
¶
Overview ¶
Package streamsupervisor reconciles durable activations independently of bus delivery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Supervisor reconciles durable intent and dispatches admitted worker attempts.
func New ¶
func New(deps runner.Deps, dispatch filament.Dispatcher) *Supervisor
New creates a supervisor; a nil dispatcher executes workers in process.
func (*Supervisor) Close ¶
func (s *Supervisor) Close()
Close stops reconciliation and waits for in-process workers to drain.
func (*Supervisor) Reconcile ¶
func (s *Supervisor) Reconcile(ctx context.Context) error
Reconcile dispatches pending runs using durable ownership and intent.
func (*Supervisor) Start ¶
func (s *Supervisor) Start(ctx context.Context)
Start begins reconciliation until cancellation or Close. Call it once.
Click to show internal directories.
Click to hide internal directories.