Documentation
¶
Overview ¶
Package api will implement the looperd HTTP surface and adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Config config.Config
Runtime RuntimeState
WebhookForwarder webhookforward.Forwarder
ProjectsService projectService
Now func() time.Time
RecoverySummary func() any
ReconcileStaleRuns func(context.Context) (looperdruntime.StaleRunReconcileSummary, error)
StopLoop func(context.Context, string, string) (any, error)
CloseLoop func(context.Context, string, string) (any, error)
StopAll func(context.Context, string) (any, error)
// TakeoverLoop parks a loop for interactive human takeover: stops the daemon's
// in-flight run (session id preserved on disk) and transitions the loop to
// human_takeover, returning what a human needs to resume the exact session.
TakeoverLoop func(context.Context, string, string) (TakeoverResult, error)
RepairReviewer func(context.Context, reviewer.RepairInput) (reviewer.RepairResult, error)
TriggerSchedulerTick func()
}
type RuntimeState ¶
type RuntimeState interface {
Services() looperdruntime.Services
StartedAt() (time.Time, bool)
}
Click to show internal directories.
Click to hide internal directories.