routes

package
v0.0.0-...-b46446b Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpload

func CreateUpload(c *fiber.Ctx) error

CreateUpload initiates the upload process

func CreateVideo

func CreateVideo(c *fiber.Ctx) error

CreateVideo creates a new video

func CreateView

func CreateView(c *fiber.Ctx) error

CreateView registers a video view

func GetAccount

func GetAccount()

GetAccount returns the private information of a user

func GetMe

func GetMe(c *fiber.Ctx) error

GetMe returns 200 if the user is logged in

func GetUser

func GetUser(c *fiber.Ctx) error

GetUser returns the public information of a user

func GetVersions

func GetVersions(c *fiber.Ctx) error

GetVersions returns tidal information from s3

func GetVideo

func GetVideo(c *fiber.Ctx) error

GetVideo returns a video

func GetVideos

func GetVideos(c *fiber.Ctx) error

GetVideos returns all videos

func HardDeleteVideo

func HardDeleteVideo(c *fiber.Ctx) error

HardDeleteVideo fully delete the video and all cdn resources Tidal resources will be retained

func Hello

func Hello(c *fiber.Ctx) error

Hello returns a health check

func Login

func Login(c *fiber.Ctx) error

Login checks password and mints a token

func PatchVideo

func PatchVideo(c *fiber.Ctx) error

PatchVideo creates a new video

func Register

func Register(c *fiber.Ctx) error

Register creates a user account

Types

type CreateUploadInput

type CreateUploadInput struct {
	FileName string `json:"filename"`
}

CreateUploadInput is used for creating signed urls

type CreateUploadPayload

type CreateUploadPayload struct {
	ID  string `json:"id"`
	URL string `json:"url"`
}

CreateUploadPayload instructs the client how to call the /videos endpoint

type CreateVideoInput

type CreateVideoInput struct {
	ID       string  `json:"id"`
	Title    string  `json:"title"`
	Duration float32 `json:"duration"`
}

CreateVideoInput is used for creating videos

type PublicUserQueryResponse

type PublicUserQueryResponse struct {
	ID       string `json:"id"`
	Avatar   string `json:"avatar"`
	Username string `json:"username"`
}

PublicUserQueryResponse returns public information about a user

Jump to

Keyboard shortcuts

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