handler

package
v0.0.0-...-1365047 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRangeUnsatisfiable = errors.New("range not satisfiable")

ErrRangeUnsatisfiable indicates a requested byte range cannot be satisfied.

Functions

func RegisterJobs

func RegisterJobs(r *gin.Engine, manager ProcessManager, outputs OutputOpener)

RegisterJobs exposes the status API over the Process lifecycle: reads for the gallery, segment edits with validation, a re-render action that republishes the render job, plus the one write — an immediate, best-effort Delete.

func RegisterTusd

func RegisterTusd(r *gin.Engine, handler *tusd.Handler)

Types

type OutputOpener

type OutputOpener interface {
	Open(ctx context.Context, key string) (io.ReadCloser, int64, error)
	OpenRange(ctx context.Context, key, byteRange string) (io.ReadCloser, int64, string, error)
}

OutputOpener streams an Output object from storage with optional byte-range support.

type ProcessManager

type ProcessManager interface {
	List() ([]job.Process, error)
	Get(id string) (*job.Process, error)
	Segments(id string) (string, error)
	SaveSegments(id string, segments []transcript.Segment) ([]transcript.Segment, error)
	Rerender(id string) (*job.Process, error)
	Delete(id string) (bool, error)
}

ProcessManager is the unified port the HTTP handler depends on: it covers the full Process lifecycle plus segment editing and re-render publishing. Implemented by job.Store.

Jump to

Keyboard shortcuts

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