handlers

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandler

type APIHandler struct {
	// contains filtered or unexported fields
}

APIHandler provides REST API endpoints for cron job management.

func NewAPIHandler

func NewAPIHandler(extension *cronext.Extension, logger forge.Logger) *APIHandler

NewAPIHandler creates a new API handler.

func (*APIHandler) CreateJob

func (h *APIHandler) CreateJob(ctx forge.Context) error

CreateJob creates a new job.

func (*APIHandler) DeleteJob

func (h *APIHandler) DeleteJob(ctx forge.Context) error

DeleteJob deletes a job.

func (*APIHandler) DisableJob

func (h *APIHandler) DisableJob(ctx forge.Context) error

DisableJob disables a job.

func (*APIHandler) EnableJob

func (h *APIHandler) EnableJob(ctx forge.Context) error

EnableJob enables a job.

func (*APIHandler) GetExecution

func (h *APIHandler) GetExecution(ctx forge.Context) error

GetExecution retrieves a single execution.

func (*APIHandler) GetJob

func (h *APIHandler) GetJob(ctx forge.Context) error

GetJob retrieves a job by ID.

func (*APIHandler) GetJobExecutions

func (h *APIHandler) GetJobExecutions(ctx forge.Context) error

GetJobExecutions retrieves execution history for a job.

func (*APIHandler) GetJobStats

func (h *APIHandler) GetJobStats(ctx forge.Context) error

GetJobStats retrieves statistics for a specific job.

func (*APIHandler) GetStats

func (h *APIHandler) GetStats(ctx forge.Context) error

GetStats retrieves scheduler statistics.

func (*APIHandler) Health

func (h *APIHandler) Health(ctx forge.Context) error

Health checks the health of the cron extension.

func (*APIHandler) ListExecutions

func (h *APIHandler) ListExecutions(ctx forge.Context) error

ListExecutions lists all executions.

func (*APIHandler) ListJobs

func (h *APIHandler) ListJobs(ctx forge.Context) error

ListJobs lists all jobs.

func (*APIHandler) RegisterRoutes

func (h *APIHandler) RegisterRoutes(router forge.Router, prefix string)

RegisterRoutes registers API routes with the router.

func (*APIHandler) TriggerJob

func (h *APIHandler) TriggerJob(ctx forge.Context) error

TriggerJob manually triggers a job execution.

func (*APIHandler) UpdateJob

func (h *APIHandler) UpdateJob(ctx forge.Context) error

UpdateJob updates a job.

type WebSocketHandler

type WebSocketHandler struct {
	// contains filtered or unexported fields
}

WebSocketHandler provides WebSocket support for real-time job updates. This is a placeholder implementation that needs to be completed.

func NewWebSocketHandler

func NewWebSocketHandler(extension *cronext.Extension, logger forge.Logger) *WebSocketHandler

NewWebSocketHandler creates a new WebSocket handler. TODO: Implement full WebSocket support for real-time updates.

func (*WebSocketHandler) RegisterRoutes

func (h *WebSocketHandler) RegisterRoutes(router forge.Router, prefix string)

RegisterRoutes registers WebSocket routes. TODO: Implement WebSocket endpoint for job execution updates.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL