Documentation
¶
Overview ¶
Package handlers contains HTTP request handlers for the API.
Index ¶
- type EventHandler
- func (h *EventHandler) GetEvent(w http.ResponseWriter, r *http.Request)
- func (h *EventHandler) GetEventStats(w http.ResponseWriter, r *http.Request)
- func (h *EventHandler) ListEventTypes(w http.ResponseWriter, r *http.Request)
- func (h *EventHandler) ListEvents(w http.ResponseWriter, r *http.Request)
- type Handler
- func (h *Handler) CreateConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeployment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeployment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ExecuteDeployment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeployment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetExecution(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Health(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListConfigs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListDeploymentExecutions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListDeployments(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConfig(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeployment(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ValidateConfig(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
EventHandler provides HTTP handlers for events API.
func NewEventHandler ¶
func NewEventHandler(repo repository.EventRepository, metrics *subscribers.MetricsSubscriber) *EventHandler
NewEventHandler creates a new EventHandler.
func (*EventHandler) GetEvent ¶
func (h *EventHandler) GetEvent(w http.ResponseWriter, r *http.Request)
GetEvent handles GET /events/{id}.
func (*EventHandler) GetEventStats ¶
func (h *EventHandler) GetEventStats(w http.ResponseWriter, r *http.Request)
GetEventStats handles GET /events/stats.
func (*EventHandler) ListEventTypes ¶
func (h *EventHandler) ListEventTypes(w http.ResponseWriter, r *http.Request)
ListEventTypes handles GET /events/types.
func (*EventHandler) ListEvents ¶
func (h *EventHandler) ListEvents(w http.ResponseWriter, r *http.Request)
ListEvents handles GET /events.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides HTTP handlers for the API.
func NewHandler ¶
func NewHandler( deployments repository.DeploymentRepo, configs repository.ConfigRepo, executions repository.ExecutionRepo, ) *Handler
NewHandler creates a new Handler with the given repositories. Accepts any types that implement the repository interfaces.
func NewHandlerFromRepositories ¶
func NewHandlerFromRepositories(repos *repository.Repositories) *Handler
NewHandlerFromRepositories creates a new Handler from a Repositories struct.
func (*Handler) CreateConfig ¶
func (h *Handler) CreateConfig(w http.ResponseWriter, r *http.Request)
CreateConfig handles POST /configs.
func (*Handler) CreateDeployment ¶
func (h *Handler) CreateDeployment(w http.ResponseWriter, r *http.Request)
CreateDeployment handles POST /deployments.
func (*Handler) DeleteConfig ¶
func (h *Handler) DeleteConfig(w http.ResponseWriter, r *http.Request)
DeleteConfig handles DELETE /configs/{id}.
func (*Handler) DeleteDeployment ¶
func (h *Handler) DeleteDeployment(w http.ResponseWriter, r *http.Request)
DeleteDeployment handles DELETE /deployments/{id}.
func (*Handler) ExecuteDeployment ¶
func (h *Handler) ExecuteDeployment(w http.ResponseWriter, r *http.Request)
ExecuteDeployment handles POST /deployments/{id}/execute.
func (*Handler) GetConfig ¶
func (h *Handler) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig handles GET /configs/{id}.
func (*Handler) GetDeployment ¶
func (h *Handler) GetDeployment(w http.ResponseWriter, r *http.Request)
GetDeployment handles GET /deployments/{id}.
func (*Handler) GetExecution ¶
func (h *Handler) GetExecution(w http.ResponseWriter, r *http.Request)
GetExecution handles GET /executions/{id}.
func (*Handler) Health ¶
func (h *Handler) Health(w http.ResponseWriter, r *http.Request)
Health handles GET /health.
func (*Handler) ListConfigs ¶
func (h *Handler) ListConfigs(w http.ResponseWriter, r *http.Request)
ListConfigs handles GET /configs.
func (*Handler) ListDeploymentExecutions ¶
func (h *Handler) ListDeploymentExecutions(w http.ResponseWriter, r *http.Request)
ListDeploymentExecutions handles GET /deployments/{id}/executions.
func (*Handler) ListDeployments ¶
func (h *Handler) ListDeployments(w http.ResponseWriter, r *http.Request)
ListDeployments handles GET /deployments.
func (*Handler) ListExecutions ¶
func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)
ListExecutions handles GET /executions.
func (*Handler) UpdateConfig ¶
func (h *Handler) UpdateConfig(w http.ResponseWriter, r *http.Request)
UpdateConfig handles PUT /configs/{id}.
func (*Handler) UpdateDeployment ¶
func (h *Handler) UpdateDeployment(w http.ResponseWriter, r *http.Request)
UpdateDeployment handles PUT /deployments/{id}.
func (*Handler) ValidateConfig ¶
func (h *Handler) ValidateConfig(w http.ResponseWriter, r *http.Request)
ValidateConfig handles POST /configs/{id}/validate.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package compensation provides HTTP handlers for compensation operations.
|
Package compensation provides HTTP handlers for compensation operations. |
|
Package jobs provides HTTP handlers for job-related API endpoints.
|
Package jobs provides HTTP handlers for job-related API endpoints. |
|
Package notifications provides HTTP handlers for notification endpoints.
|
Package notifications provides HTTP handlers for notification endpoints. |
|
Package webhooks provides HTTP handlers for webhook management endpoints.
|
Package webhooks provides HTTP handlers for webhook management endpoints. |
|
Package workflow provides HTTP handlers for workflow operations.
|
Package workflow provides HTTP handlers for workflow operations. |