service

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AudioDownmixMapping added in v0.1.3

func AudioDownmixMapping(ad db.AudioDownmix) ([][]bool, error)

AudioDownmixMapping converts

Types

type NewTranscodeJobInputPayload

type NewTranscodeJobInputPayload struct {
	// source media for the transcoding job.
	Source string `json:"source"`

	// SourceInfo is an optional param allowing users to add helpful information about the source content
	SourceInfo db.File `json:"sourceInfo,omitempty"`

	// SourceSplice is a set of second ranges to excise from the input and catenate
	// together before processing the source. For example, [[0,1],[8,9]], will cut out
	// a two-second clip, from the first and last second of a 10s video.
	SourceSplice timecode.Splice `json:"splice,omitempty"`

	// list of outputs in this job
	Outputs []struct {
		FileName string `json:"fileName"`
		Preset   string `json:"preset"`
	} `json:"outputs"`

	// provider to use in this job
	Provider string `json:"provider"`

	// Name is an optional client-supplied name for the job
	Name string `json:"name,omitempty"`

	// ExecutionFeatures holds custom provider-specific execution features configuration
	ExecutionFeatures db.ExecutionFeatures `json:"executionFeatures,omitempty"`

	// ExecutionEnv contains configurations for the environment used while transcoding
	ExecutionEnv db.ExecutionEnvironment `json:"executionEnv,omitempty"`

	// SidecarAssets holds the location of any sidecar assets associated with the transcode
	SidecarAssets map[db.SidecarAssetKind]string `json:"sidecarAssets,omitempty"`

	// DestinationBasePath is an optional param allowing users to overwrite the location of outputs pre job
	DestinationBasePath string `json:"destinationBasePath,omitempty"`

	// provider Adaptive Streaming parameters
	StreamingParams db.StreamingParams `json:"streamingParams,omitempty"`

	// ExplicitKeyframeOffsets define offsets from the beginning of the media to insert keyframes when encoding
	ExplicitKeyframeOffsets []float64 `json:"explicitKeyframeOffsets,omitempty"`

	// Labels for jobs for grouping/searching later on
	Labels []string `json:"labels,omitempty"`
}

NewTranscodeJobInputPayload makes up the parameters available for specifying a new transcoding job

type PartialJob

type PartialJob struct {
	// unique identifier of the job
	//
	// unique: true
	JobID string `json:"jobId"`
}

PartialJob is the simple response given to an API call that creates a new transcoding job swagger:model

type TranscodingService

type TranscodingService struct {
	// contains filtered or unexported fields
}

TranscodingService will implement server.JSONService and handle all requests to the server.

func NewTranscodingService

func NewTranscodingService(cfg *config.Config, logger *logrus.Logger) (*TranscodingService, error)

NewTranscodingService will instantiate a JSONService with the given configuration.

func (*TranscodingService) Endpoints

func (s *TranscodingService) Endpoints() map[string]map[string]http.HandlerFunc

Endpoints is a list of all non-json endpoints.

func (*TranscodingService) JSONEndpoints

func (s *TranscodingService) JSONEndpoints() map[string]map[string]server.JSONEndpoint

JSONEndpoints is a listing of all endpoints available in the JSONService.

func (*TranscodingService) JSONMiddleware

JSONMiddleware provides a JSONEndpoint hook wrapped around all requests.

func (*TranscodingService) Middleware

func (s *TranscodingService) Middleware(h http.Handler) http.Handler

Middleware provides an http.Handler hook wrapped around all requests. In this implementation, we're using a GzipHandler middleware to compress our responses.

func (*TranscodingService) Prefix

func (s *TranscodingService) Prefix() string

Prefix returns the string prefix used for all endpoints within this service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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