handlers

package
v0.0.0-...-702fcad Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMediaHandle

func CreateMediaHandle(c *fiber.Ctx) error

CreateMediaHandle handle create a new media

func CreateMediaListHandle

func CreateMediaListHandle(c *fiber.Ctx) error

CreateMediaListHandle handle create a new media

func DeleteDirectoryHandle

func DeleteDirectoryHandle(c *fiber.Ctx) error

DeleteDirectoryHandle handle delete a media

func DeleteMediaHandle

func DeleteMediaHandle(c *fiber.Ctx) error

DeleteMediaHandle handle delete a media

func GetMediaByDirectoryHandle

func GetMediaByDirectoryHandle(c *fiber.Ctx) error

GetMediaByDirectoryHandle handle get media list by directory

func GetMediaHandle

func GetMediaHandle(c *fiber.Ctx) error

GetMediaHandle handle get a media

func QueryAlbumHandle

func QueryAlbumHandle(c *fiber.Ctx) error

QueryAlbumHandle handle query on media

func QueryMediaHandle

func QueryMediaHandle(c *fiber.Ctx) error

QueryMediaHandle handle query on media

func UpdateMediaHandle

func UpdateMediaHandle(c *fiber.Ctx) error

UpdateMediaHandle handle create a new media

Types

type AlbumQueryModel

type AlbumQueryModel struct {
	Page  int64     `query:"page"`
	Limit int64     `query:"limit"`
	Album uuid.UUID `query:"album"`
}

type MediaQueryModel

type MediaQueryModel struct {
	Search string    `query:"search"`
	Page   int64     `query:"page"`
	Owner  uuid.UUID `query:"owner"`
	Type   int       `query:"type"`
}

Jump to

Keyboard shortcuts

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