Documentation
¶
Index ¶
- type ChangePasswordRequest
- type Handler
- func (h *Handler) AuthCallback(c echo.Context) error
- func (h *Handler) AuthLogin(c echo.Context) error
- func (h *Handler) ChangePassword(c echo.Context) error
- func (h *Handler) CreateTask(c echo.Context) error
- func (h *Handler) DeleteRecording(c echo.Context) error
- func (h *Handler) DeleteTask(c echo.Context) error
- func (h *Handler) GenerateTicket(c echo.Context) error
- func (h *Handler) GetLiveRecordings(c echo.Context) error
- func (h *Handler) GetRecordingPreview(c echo.Context) error
- func (h *Handler) GetStats(c echo.Context) error
- func (h *Handler) InitOIDC() error
- func (h *Handler) ListArchives(c echo.Context) error
- func (h *Handler) ListTasks(c echo.Context) error
- func (h *Handler) Login(c echo.Context) error
- func (h *Handler) PreviewTask(c echo.Context) error
- func (h *Handler) RateLimitMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func (h *Handler) RegisterRoutes(e *echo.Echo)
- func (h *Handler) StartTask(c echo.Context) error
- func (h *Handler) StopTask(c echo.Context) error
- func (h *Handler) UpdateTask(c echo.Context) error
- func (h *Handler) WsInteractive(c echo.Context) error
- type LiveRecordingDTO
- type LoginRequest
- type OIDCContext
- type RecordingDTO
- type TaskDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordRequest ¶
type Handler ¶
type Handler struct {
Queries *database.Queries
Config *config.Config
Recorder *recorder.Worker
DB *sql.DB
// Ticket Store
TicketStore auth.TicketStore
// OIDC
OIDC *OIDCContext
// contains filtered or unexported fields
}
func (*Handler) AuthCallback ¶
AuthCallback handles the IDP response
func (*Handler) GenerateTicket ¶
Authenticated route to generate a one-time ticket Authenticated route to generate a one-time ticket
func (*Handler) GetLiveRecordings ¶
GetLiveRecordings returns all active recordings with real-time stats
func (*Handler) GetRecordingPreview ¶
GetRecordingPreview serves the latest frame for a recording
func (*Handler) RateLimitMiddleware ¶
func (h *Handler) RateLimitMiddleware(next echo.HandlerFunc) echo.HandlerFunc
RateLimitMiddleware enforces simple IP-based rate limiting
func (*Handler) RegisterRoutes ¶
type LiveRecordingDTO ¶
type LiveRecordingDTO struct {
ID int64 `json:"id"`
TaskID int64 `json:"task_id"`
TaskName string `json:"task_name"`
Status string `json:"status"`
ElapsedSeconds int64 `json:"elapsed_seconds"`
FileSizeBytes int64 `json:"file_size_bytes"`
HasPreview bool `json:"has_preview"`
}
LiveRecordingDTO represents active recording with real-time stats
type LoginRequest ¶
type OIDCContext ¶
OIDCContext holds the provider and config for reuse
type RecordingDTO ¶
type TaskDTO ¶
type TaskDTO struct {
ID int64 `json:"id"`
Name string `json:"name"`
TargetURL string `json:"target_url"`
IsEnabled bool `json:"is_enabled"`
CreatedAt time.Time `json:"created_at"`
CustomCSS string `json:"custom_css"`
Fps int64 `json:"fps"`
Crf int64 `json:"crf"`
FilenameTemplate string `json:"filename_template"`
TimeOverlay bool `json:"time_overlay"`
TimeOverlayConfig string `json:"time_overlay_config"`
}