Documentation
¶
Index ¶
- type Ledger
- func (l *Ledger) Claim(ctx context.Context, unitID string, payload json.RawMessage) (func() error, bool, error)
- func (l *Ledger) CreateBlueprint(ctx context.Context, manifest ledger.BlueprintManifest) ([]ledger.Unit, error)
- func (l *Ledger) GatherDepResults(ctx context.Context, unitID string) (map[string][]json.RawMessage, error)
- func (l *Ledger) GetUnit(ctx context.Context, unitID string) (ledger.Unit, error)
- func (l *Ledger) RecordCompleted(ctx context.Context, unitID string, result any) (bool, []ledger.Unit, error)
- func (l *Ledger) RecordFailed(ctx context.Context, unitID string, unitErr error) error
- func (l *Ledger) SendSignal(ctx context.Context, blueprintID, signalKey string, payload any) ([]ledger.Unit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct {
// contains filtered or unexported fields
}
func (*Ledger) CreateBlueprint ¶
func (l *Ledger) CreateBlueprint(ctx context.Context, manifest ledger.BlueprintManifest) ([]ledger.Unit, error)
CreateBlueprint atomically persists the manifest, records unit_dispatched events for root task units, and returns those units for publication. Signal units are never auto-dispatched — they wait for SendSignal.
func (*Ledger) GatherDepResults ¶
func (*Ledger) RecordCompleted ¶
func (*Ledger) RecordFailed ¶
Click to show internal directories.
Click to hide internal directories.