Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is a standard JSON error envelope.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP API for the sidecar.
type TaskRequest ¶
type TaskRequest struct {
Type string `json:"type"`
Params map[string]any `json:"params,omitempty"`
Schedule *engine.Schedule `json:"schedule,omitempty"`
}
TaskRequest is the JSON body for POST /v0/tasks. If Schedule is set the task becomes a recurring cron-triggered task; otherwise it runs immediately.
Click to show internal directories.
Click to hide internal directories.