Controllers

package
v0.0.0-...-8985448 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VideoSearch

func VideoSearch(c *gin.Context)

func VideoStore

func VideoStore(c *gin.Context)

Types

type Feature

type Feature struct {
	Description string      `bson:"description"`
	Timestamps  []Timestamp `bson:"timestamps"`
}

type PaginatedResult

type PaginatedResult struct {
	Videos     []Video
	Pagination pag.PaginationData
}

type SearchBody

type SearchBody struct {
	Keyword string `form:"keyword"`
	Page    int64  `form:"page"`
	PerPage int64  `form:"perPage"`
}

type Timestamp

type Timestamp struct {
	Start int64 `bson:"start"`
	End   int64 `bson:"end"`
}

type Video

type Video struct {
	Id        primitive.ObjectID `bson:"_id"`
	Filename  string             `bson:"filename"`
	Size      int                `bson:"size"`
	UUID      string             `bson:"uuid"`
	Features  []Feature          `bson:"features"`
	SignedURL string
}

Jump to

Keyboard shortcuts

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