encoder

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncoderController added in v0.7.0

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

func NewEncoderController added in v0.7.0

func NewEncoderController(enc *encoder.Encoder) *EncoderController

func (*EncoderController) TranscodeFinished added in v0.7.0

func (e *EncoderController) TranscodeFinished(c echo.Context) error

func (*EncoderController) VideoNew added in v0.7.0

func (e *EncoderController) VideoNew(c echo.Context) error

VideoNew handles authenticating a video upload request.

Connects with tusd through web-hooks, so tusd POSTs here. tusd's requests here does contain a lot of useful information. but for this endpoint, we are just checking for the JWT.

type MetaData

type MetaData struct {
	Filename string `json:"filename"`
}

MetaData represents metadata of a file. There is more, but we just need filename

type Request

type Request struct {
	Upload      Upload
	HTTPRequest *http.Request
}

Request represents the upload and a normal HTTP request

type Storage

type Storage struct {
	Type   string
	Bucket string
	Key    string
}

Storage represents the storage medium of the object

type Upload

type Upload struct {
	ID        string
	Size      int
	Offset    int
	IsFinal   bool
	IsPartial bool
	// PartialUploads null
	MetaData []MetaData
	Storage  Storage
}

Upload represents an object and it's status

Jump to

Keyboard shortcuts

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