service

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewTranscodeJobInputPayload

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

	// 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"`

	// provider Adaptive Streaming parameters
	StreamingParams db.StreamingParams `json:"streamingParams,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.

Jump to

Keyboard shortcuts

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