controllers

package
v1.2.1-0...-6b3618a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClip

func CreateClip(c *gin.Context)

CreateClip godoc @Summary Create clip @Tags Clips @Accept json @Produce json @Security ApiKeyAuth @Success 201 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /clips/ [post] @Param Body body models.Clip true "Clip obj"

func CreateCreator

func CreateCreator(c *gin.Context)

CreateCreator godoc @Summary Create creator @Tags Creators @Accept json @Produce json @Security ApiKeyAuth @Success 201 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /creators/ [post] @Param Body body models.Creator true "Creator obj"

func CreateEmote

func CreateEmote(c *gin.Context)

CreateEmote godoc @Summary Create emote @Tags Emotes @Accept json @Produce json @Security ApiKeyAuth @Success 201 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /emotes/ [post] @Param Body body models.Emote true "Emote obj"

func CreateGame

func CreateGame(c *gin.Context)

CreateGame godoc @Summary Create game @Tags Games @Accept json @Produce json @Security ApiKeyAuth @Success 201 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /games/ [post] @Param Body body models.Game true "Game obj"

func CreateVod

func CreateVod(c *gin.Context)

CreateVod godoc @Summary Create vod @Tags Vods @Accept json @Produce json @Security ApiKeyAuth @Success 201 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /vods/ [post] @Param Body body models.Vod true "Vod obj"

func DeleteClip

func DeleteClip(c *gin.Context)

DeleteClip godoc @Summary Delete clip @Tags Clips @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 404 {string} string @Router /clips/{uuid} [delete] @Param uuid path string true "Unique Identifier"

func DeleteCreator

func DeleteCreator(c *gin.Context)

DeleteCreator godoc @Summary Delete creator @Tags Creators @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 404 {string} string @Router /creators/{uuid} [delete] @Param uuid path string true "Unique Identifier"

func DeleteEmote

func DeleteEmote(c *gin.Context)

DeleteEmote godoc @Summary Delete emote @Tags Emotes @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 404 {string} string @Router /emotes/{id} [delete] @Param id path string true "Unique Identifier"

func DeleteGame

func DeleteGame(c *gin.Context)

DeleteGame godoc @Summary Delete game @Tags Games @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 404 {string} string @Router /games/{uuid} [delete] @Param uuid path string true "Unique Identifier"

func DeleteVod

func DeleteVod(c *gin.Context)

DeleteVod godoc @Summary Delete vod @Tags Vods @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 404 {string} string @Router /vods/{uuid} [delete] @Param uuid path string true "Unique Identifier"

func GetAllChatMessages

func GetAllChatMessages(c *gin.Context)

GetAllChatMessages godoc @Summary Get chat messages @Tags ChatMessage @Produce json @Success 200 {object} models.ChatMessage @Failure 400 {string} string @Failure 500 {string} string @Router /chat/ [get] @Param from query string true "messages after unix timestamp" @Param to query string false "messages before unix timestamp"

func GetClipByUUID

func GetClipByUUID(c *gin.Context)

GetClipByID godoc @Summary Get clips by uuid @Tags Clips @Produce json @Success 200 {object} models.Clip @Failure 404 {string} string @Router /clips/{uuid} [get] @Param uuid path string true "Unique Identifier"

func GetClips

func GetClips(c *gin.Context)

GetClips godoc @Summary Get all clips @Tags Clips @Accept json @Produce json @Success 200 {array} models.Clip @Failure 400 {string} string @Failure 404 {string} string @Router /clips/ [get] @Param uuid query string false "The uuid of a clip" @Param title query string false "The title of a clip" @Param duration query int false "The duration of a clip" @Param date query string false "The date of a clip" @Param filename query string false "The filename of a clip" @Param resolution query string false "The resolution of a clip" @Param size query int false "The size of a clip" @Param viewcount query int false "The viewcount of a clip" @Param creator query int false "The creator id of a clip" @Param game query int false "The game id of a clip" @Param vod query string false "The vod id of a clip" @Param order query string false "Set order direction divided by comma. Possible ordering values: 'date', 'duration', 'size'. Possible directions: 'asc', 'desc'. Example: 'date,desc'"

func GetCreatorByUUID

func GetCreatorByUUID(c *gin.Context)

GetCreatorByID godoc @Summary Get creator by uuid @Tags Creators @Produce json @Success 200 {object} models.Creator @Failure 400 {string} string @Failure 404 {string} string @Router /creators/{uuid} [get] @Param uuid path int true "Unique Identifyer"

func GetCreators

func GetCreators(c *gin.Context)

GetCreators godoc @Summary Get all creators @Tags Creators @Accept json @Produce json @Success 200 {array} models.Creator @Failure 400 {string} string @Failure 404 {string} string @Router /creators/ [get] @Param uuid query int false "The uuid of a creator" @Param name query string false "The name of a creator"

func GetEmotes

func GetEmotes(c *gin.Context)

Get Emotes godoc @Summary Get all emotes @Tags Emotes @Accept json @Produce json @Success 200 {array} models.Emote @Failure 400 {string} string @Failure 404 {string} string @Router /emotes/ [get] @Param id query string false "The id of an emote" @Param name query string false "The name of an emote" @Param provider query string false "The provider of an emote"

func GetGameByUUID

func GetGameByUUID(c *gin.Context)

GetGameByID godoc @Summary Get game by uuid @Tags Games @Produce json @Success 200 {object} models.Game @Failure 400 {string} string @Failure 404 {string} string @Router /games/{uuid} [get] @Param uuid path string true "Unique Identifier"

func GetGames

func GetGames(c *gin.Context)

Get Games godoc @Summary Get all games @Tags Games @Accept json @Produce json @Success 200 {array} models.Game @Failure 400 {string} string @Failure 404 {string} string @Router /games/ [get] @Param uuid query int false "The uuid of a game" @Param name query string false "The name of a game" @Param box_art query string false "The box_art of a game"

func GetHealth

func GetHealth(c *gin.Context)

func GetLongStats

func GetLongStats(c *gin.Context)

Get Statistics godoc @Summary Get long statistics @Tags Statistics @Accept json @Produce json @Success 200 {array} map[string]interface{} @Failure 500 {string} string @Router /stats/long [get]

func GetMetrics

func GetMetrics(c *gin.Context)

GetMetrics godoc @Summary Get process infos @Tags Metrics @Produce json @Security ApiKeyAuth @Success 200 {object} map[string]interface{} @Router /metrics/ [get]

func GetShortStats

func GetShortStats(c *gin.Context)

Get Statistics godoc @Summary Get short statistics @Tags Statistics @Accept json @Produce json @Success 200 {array} map[string]interface{} @Failure 500 {string} string @Router /stats/short [get]

func GetVodByUUID

func GetVodByUUID(c *gin.Context)

GetVodByUUID godoc @Summary Get vod by uuid @Tags Vods @Produce json @Success 200 {object} models.Vod @Failure 404 {string} string @Router /vods/{uuid} [get] @Param uuid path string true "Unique Identifier"

func GetVods

func GetVods(c *gin.Context)

GetVods godoc @Summary Get all vods @Tags Vods @Accept json @Produce json @Success 200 {array} models.Vod @Failure 400 {string} string @Failure 404 {string} string @Router /vods/ [get] @Param uuid query string false "The uuid of a vod" @Param title query string false "The title of a vod" @Param duration query int false "The duration of a vod" @Param date query string false "The date of a vod" @Param filename query string false "The filename of a vod" @Param resolution query string false "The resolution of a vod" @Param fps query int false "The fps of a vod" @Param size query int false "The size of a vod" @Param order query string false "Set order direction divided by comma. Possible ordering values: 'date', 'duration', 'size'. Possible directions: 'asc', 'desc'. Example: 'date,desc'"

func GetYears

func GetYears(c *gin.Context)

GetYears godoc @Summary Get count of vods per year @Tags Years @Produce json @Success 200 {object} []map[string]interface{} @Failure 400 {string} string @Router /years/ [get]

func PatchClip

func PatchClip(c *gin.Context)

PatchClip godoc @Summary Patch clip @Tags Clips @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /clips/{uuid} [patch] @Param uuid path string true "Unique Identifier" @Param Body body models.Clip true "Clip obj"

func PatchCreator

func PatchCreator(c *gin.Context)

PatchCreator godoc @Summary Patch creator @Tags Creators @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /creators/{uuid} [patch] @Param uuid path int true "Unique Identifier" @Param Body body models.Creator true "Creator obj"

func PatchEmote

func PatchEmote(c *gin.Context)

PatchEmote godoc @Summary Patch emote @Tags Emotes @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /emotes/{id} [patch] @Param id path int true "Unique Identifier" @Param Body body models.Emote true "Emote obj"

func PatchGame

func PatchGame(c *gin.Context)

PatchGame godoc @Summary Patch game @Tags Games @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /games/{uuid} [patch] @Param uuid path int true "Unique Identifier" @Param Body body models.Game true "Game obj"

func PatchVod

func PatchVod(c *gin.Context)

PatchVod godoc @Summary Patch vod @Tags Vods @Accept json @Produce json @Security ApiKeyAuth @Success 200 {string} string @Failure 400 {string} string @Failure 422 {string} string @Router /vods/{uuid} [patch] @Param uuid path string true "Unique Identifier" @Param Body body models.Vod true "Vod obj"

func SendStream

func SendStream(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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