Help us shape the future of Go! Take the 2026 Go Developer Survey

manifest

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "episode_meta.json"

Variables

This section is empty.

Functions

func ListStagingEpisodes

func ListStagingEpisodes(root string) ([]string, error)

ListStagingEpisodes returns completed staging episode dirs sorted by episode_index.

func StagingDir

func StagingDir(root string, episodeIndex int) string

func StagingMediaPath added in v1.1.0

func StagingMediaPath(stagingDir, rel string) string

StagingMediaPath resolves a path stored in episode metadata relative to a staging dir. Legacy manifests may store absolute paths; those are returned unchanged.

func StagingVideoRel added in v1.1.0

func StagingVideoRel(videoKey string) string

StagingVideoRel returns the episode-relative path for a staged per-episode MP4.

func Write

func Write(dir string, ep Episode) error

Types

type Episode

type Episode struct {
	EpisodeIndex   int                `json:"episode_index"`
	Length         int                `json:"length"`
	Tasks          []string           `json:"tasks"`
	FramesParquet  string             `json:"frames_parquet"`
	Videos         map[string]string  `json:"videos"`
	Stats          stats.EpisodeStats `json:"stats"`
	VideoDurations map[string]float64 `json:"video_durations"`
}

func Read

func Read(dir string) (Episode, error)

Jump to

Keyboard shortcuts

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