Documentation
¶
Index ¶
- type Handler
- func (h *Handler) CancelExecution(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ClearInstances(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateInstance(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Execute(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetExecutionEvents(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetExecutionState(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInstanceByID(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListInstances(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RemoveInstance(w http.ResponseWriter, r *http.Request)
- func (h *Handler) StreamExecutionEvents(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CancelExecution ¶
func (h *Handler) CancelExecution(w http.ResponseWriter, r *http.Request)
CancelExecution stops a running execution at the caller's request.
The status codes distinguish the three outcomes a client has to tell apart. 404 means the instance or execution does not exist and never can be cancelled. 409 means it exists but has already finished, so the cancellation is refused rather than silently ignored -- a client that asked to stop something and is told "ok" must be able to trust that it was still running. 200 confirms the execution was stopped and is now terminal.
func (*Handler) ClearInstances ¶
func (h *Handler) ClearInstances(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateInstance ¶
func (h *Handler) CreateInstance(w http.ResponseWriter, r *http.Request)
func (*Handler) GetExecutionEvents ¶
func (h *Handler) GetExecutionEvents(w http.ResponseWriter, r *http.Request)
func (*Handler) GetExecutionState ¶
func (h *Handler) GetExecutionState(w http.ResponseWriter, r *http.Request)
func (*Handler) GetInstanceByID ¶
func (h *Handler) GetInstanceByID(w http.ResponseWriter, r *http.Request)
func (*Handler) ListExecutions ¶
func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)
func (*Handler) ListInstances ¶
func (h *Handler) ListInstances(w http.ResponseWriter, r *http.Request)
func (*Handler) RemoveInstance ¶
func (h *Handler) RemoveInstance(w http.ResponseWriter, r *http.Request)
func (*Handler) StreamExecutionEvents ¶
func (h *Handler) StreamExecutionEvents(w http.ResponseWriter, r *http.Request)
StreamExecutionEvents exposes the execution's event stream over Server-Sent Events. It replays persisted history (optionally resumed from ?after={event_id}) and then delivers live events as they occur.