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)
StopAll func(context.Context, string) (any, 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.