Versions in this module Expand all Collapse all v1 v1.8.2 Dec 3, 2019 Changes in this version + const StatusCanceled + const StatusFailed + const StatusFinished + const StatusQueued + const StatusStarted + const StatusUnknown + var ErrPresetMapNotFound = errors.New("preset not found in provider") + var ErrProviderAlreadyRegistered = errors.New("provider is already registered") + var ErrProviderNotFound = errors.New("provider not found") + func ListProviders(c *config.Config) []string + func Register(name string, provider Factory) error + type Capabilities struct + Destinations []string + InputFormats []string + OutputFormats []string + type Description struct + Capabilities Capabilities + Enabled bool + Health Health + Name string + func DescribeProvider(name string, c *config.Config) (*Description, error) + type Factory func(cfg *config.Config) (TranscodingProvider, error) + func GetProviderFactory(name string) (Factory, error) + type Health struct + Message string + OK bool + type InvalidConfigError string + func (err InvalidConfigError) Error() string + type JobNotFoundError struct + ID string + func (err JobNotFoundError) Error() string + type JobOutput struct + Destination string + Files []OutputFile + type JobStatus struct + Output JobOutput + Progress float64 + ProviderJobID string + ProviderName string + ProviderStatus map[string]interface{} + SourceInfo SourceInfo + Status Status + StatusMessage string + type OutputFile struct + Container string + FileSize int64 + Height int64 + Path string + VideoCodec string + Width int64 + type SourceInfo struct + Duration time.Duration + Height int64 + VideoCodec string + Width int64 + type Status string + type TranscodingProvider interface + CancelJob func(id string) error + Capabilities func() Capabilities + CreatePreset func(db.Preset) (string, error) + DeletePreset func(presetID string) error + GetPreset func(presetID string) (interface{}, error) + Healthcheck func() error + JobStatus func(*db.Job) (*JobStatus, error) + Transcode func(*db.Job) (*JobStatus, error)