Documentation
¶
Index ¶
- func CreateClip(c *gin.Context)
- func CreateCreator(c *gin.Context)
- func CreateEmote(c *gin.Context)
- func CreateGame(c *gin.Context)
- func CreateVod(c *gin.Context)
- func DeleteClip(c *gin.Context)
- func DeleteCreator(c *gin.Context)
- func DeleteEmote(c *gin.Context)
- func DeleteGame(c *gin.Context)
- func DeleteVod(c *gin.Context)
- func GetAllChatMessages(c *gin.Context)
- func GetClipByUUID(c *gin.Context)
- func GetClips(c *gin.Context)
- func GetCreatorByUUID(c *gin.Context)
- func GetCreators(c *gin.Context)
- func GetEmotes(c *gin.Context)
- func GetGameByUUID(c *gin.Context)
- func GetGames(c *gin.Context)
- func GetHealth(c *gin.Context)
- func GetLongStats(c *gin.Context)
- func GetMetrics(c *gin.Context)
- func GetShortStats(c *gin.Context)
- func GetVodByUUID(c *gin.Context)
- func GetVods(c *gin.Context)
- func GetYears(c *gin.Context)
- func PatchClip(c *gin.Context)
- func PatchCreator(c *gin.Context)
- func PatchEmote(c *gin.Context)
- func PatchGame(c *gin.Context)
- func PatchVod(c *gin.Context)
- func SendStream(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClip ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 GetLongStats ¶
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 ¶
GetMetrics godoc @Summary Get process infos @Tags Metrics @Produce json @Security ApiKeyAuth @Success 200 {object} map[string]interface{} @Router /metrics/ [get]
func GetShortStats ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
Types ¶
This section is empty.