Documentation
¶
Index ¶
Constants ¶
View Source
const ( JobCreated = JobStatus("created") JobDownloading = JobStatus("downloading") JobEncoding = JobStatus("encoding") JobUploading = JobStatus("uploading") JobFinished = JobStatus("finished") JobError = JobStatus("error") )
These constants are used on the status field of Job type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioPreset ¶
type AudioPreset struct { Codec string `json:"codec,omitempty"` Bitrate string `json:"bitrate,omitempty"` }
AudioPreset define the set of parameters for audio on a given preset
type Job ¶
type Job struct { ID string `json:"id"` Source string `json:"source"` Destination string `json:"destination"` Preset Preset `json:"preset"` Status JobStatus `json:"status"` Details string `json:"details"` Progress string `json:"progress"` LocalSource string `json:"-"` LocalDestination string `json:"-"` }
Job is the set of parameters of a given job
type JobInput ¶
type JobInput struct { Source string `json:"source"` Destination string `json:"destination"` PresetName string `json:"preset"` }
JobInput stores the information passed from the user when creating a job.
type Preset ¶
type Preset struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Container string `json:"container,omitempty"` RateControl string `json:"rateControl,omitempty"` Video VideoPreset `json:"video"` Audio AudioPreset `json:"audio"` }
Preset define the set of parameters of a given preset
type VideoPreset ¶
type VideoPreset struct { Width string `json:"width,omitempty"` Height string `json:"height,omitempty"` Codec string `json:"codec,omitempty"` Bitrate string `json:"bitrate,omitempty"` GopSize string `json:"gopSize,omitempty"` GopMode string `json:"gopMode,omitempty"` Profile string `json:"profile,omitempty"` ProfileLevel string `json:"profileLevel,omitempty"` InterlaceMode string `json:"interlaceMode,omitempty"` }
VideoPreset define the set of parameters for video on a given preset
Click to show internal directories.
Click to hide internal directories.