encoder

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VideoNew

func 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.

Types

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