models

package
v0.0.0-...-6fee585 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusFetched   = "FETCHED"
	StatusCancelled = "CANCELLED"
)
View Source
const (
	StatusProcessing = "PROCESSING"
	StatusFailed     = "FAILED"
	StatusReady      = "READY"
	StatusDelete     = "DELETE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name   string
	Region string
}

type Entry

type Entry struct {
	UID       string `json:"uid"`
	Timestamp int    `json:"timestamp"`
	VID       string `json:"vid"`
	State     string `json:"state"`
}

type GetVideoResponse

type GetVideoResponse struct {
	VID     string `json:"vid"`
	UID     string `json:"uid"`
	Preview string `json:"preview"`
	Src     string `json:"src,omitempty"`
	State   string `json:"state,omitempty"`
}

type LambdaResponse

type LambdaResponse struct {
	Status string `json:"status"`
	// VideoName string `json:"vname"`
	Msg string `json:"msg,omitempty"`
}

type MetaData

type MetaData struct {
	VID       string `json:"id"`
	Timestamp int    `json:"timestamp"`
	UID       string `json:"uid,omitempty"`
	State     string `json:"status,omitempty"` // TODO: rename to State
}

type MsgResponse

type MsgResponse struct {
	Msg string `json:"msg"`
}

type NewVideoResponse

type NewVideoResponse struct {
	VID       string `json:"vid"`
	UID       string `json:"uid"`
	Timestamp int    `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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