flock

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name identifies the Flock provider by name
	Name = "flock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobOutput

type JobOutput struct {
	AudioChannels      int    `json:"audio_channels"`
	AudioBitrateKbps   int    `json:"audio_bitrate_kbps"`
	VideoBitrateKbps   int    `json:"video_bitrate_kbps"`
	Width              int    `json:"width,omitempty"`
	Height             int    `json:"height,omitempty"`
	KeyframesPerSecond int    `json:"keyframes_sec,omitempty"`
	KeyframeInterval   int    `json:"keyframe_interval,omitempty"`
	MultiPass          bool   `json:"multipass"`
	Preset             string `json:"preset,omitempty"`
	Tag                string `json:"tag,omitempty"`
	Destination        string `json:"destination"`
	AudioCodec         string `json:"acodec,omitempty"`
	VideoCodec         string `json:"vcodec,omitempty"`
}

type JobRequest

type JobRequest struct {
	Job JobSpec `json:"job"`
}

type JobResponse

type JobResponse struct {
	CreateTime      string              `json:"create_time"`
	CreateTimestamp float64             `json:"create_timestamp"`
	Duration        string              `json:"duration"`
	ID              int                 `json:"id"`
	Progress        float64             `json:"progress_pct"`
	Status          string              `json:"status"`
	UpdateTime      string              `json:"update_time"`
	UpdateTimestamp float64             `json:"update_timestamp"`
	Outputs         []JobResponseOutput `json:"outputs"`
}

type JobResponseOutput

type JobResponseOutput struct {
	CreateTime      string  `json:"create_time"`
	CreateTimestamp float64 `json:"create_timestamp"`
	Destination     string  `json:"destination"`
	Duration        string  `json:"duration"`
	Encoder         string  `json:"encoder"`
	ID              int     `json:"id"`
	Progress        float64 `json:"progress_pct"`
	Request         map[string]interface{}
	Info            string  `json:"info"`
	Status          string  `json:"status"`
	UpdateTime      string  `json:"update_time"`
	UpdateTimestamp float64 `json:"update_timestamp"`
}

type JobSpec

type JobSpec struct {
	Source  string      `json:"source"`
	Outputs []JobOutput `json:"outputs"`
	Labels  []string    `json:"labels,omitempty"`
}

type NewJobResponse

type NewJobResponse struct {
	JobID  int    `json:"job_id"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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