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.
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.
Click to show internal directories.
Click to hide internal directories.