Documentation ¶
Index ¶
- type AuthControllerAuth
- type LiveController
- type LiveControllerAuth
- type PingController
- type UserControllerAuth
- type VideoController
- type VideoControllerAuth
- func (c *VideoControllerAuth) CommentVideo(info datatransfers.CommentBody) datatransfers.Response
- func (c *VideoControllerAuth) DeleteVideo(hash string) datatransfers.Response
- func (c *VideoControllerAuth) EditVideo(_ string) datatransfers.Response
- func (c *VideoControllerAuth) GetCheckUnique(title string) datatransfers.Response
- func (c *VideoControllerAuth) GetList(variant, author string, count, offset int) datatransfers.Response
- func (c *VideoControllerAuth) LikeVideo(info datatransfers.LikeBody) datatransfers.Response
- func (c *VideoControllerAuth) Prepare()
- func (c *VideoControllerAuth) SubscribeAuthor(info datatransfers.SubscribeBody) datatransfers.Response
- func (c *VideoControllerAuth) UploadVideo(_ string) datatransfers.Response
- type WebSocketController
- type WebSocketControllerAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthControllerAuth ¶
type AuthControllerAuth struct { beego.Controller Handler handlers.Handler }
func (*AuthControllerAuth) PostCheckRegister ¶
func (c *AuthControllerAuth) PostCheckRegister(idToken datatransfers.UserRegister) datatransfers.Response
@Title Register user from OID, skip if exists, update if required @Param idToken body {datatransfers.UserRegister} true "registration info" @Success 200 success @router /check [post]
type LiveController ¶
type LiveController struct { beego.Controller Handler handlers.Handler }
Live Stream Upstream Controller
func (*LiveController) PlayLive ¶
func (c *LiveController) PlayLive(username string) datatransfers.Response
@Title Receive RTMP UpLink @Success 200 {object} models.Object @router /stream/:username [get]
type LiveControllerAuth ¶
type LiveControllerAuth struct { beego.Controller Handler handlers.Handler // contains filtered or unexported fields }
func (*LiveControllerAuth) ControlWindow ¶
func (c *LiveControllerAuth) ControlWindow(open bool) datatransfers.Response
@Title Set RTMP UpLink Window @Success 200 {object} models.Object @Param open query bool true "open" @router /window [put]
func (*LiveControllerAuth) GetWindow ¶
func (c *LiveControllerAuth) GetWindow(_ string) datatransfers.Response
@Title Get RTMP UpLink Status @Success 200 {object} models.Object @Param stub query string false "stub" @router /window [get]
func (*LiveControllerAuth) Prepare ¶
func (c *LiveControllerAuth) Prepare()
type PingController ¶
type PingController struct {
beego.Controller
}
func (*PingController) GetAll ¶
func (c *PingController) GetAll()
@Title Ping @Success 200 {object} models.Object @router / [get]
type UserControllerAuth ¶
type UserControllerAuth struct { beego.Controller Handler handlers.Handler // contains filtered or unexported fields }
func (*UserControllerAuth) Prepare ¶
func (c *UserControllerAuth) Prepare()
func (*UserControllerAuth) ProfileDetails ¶
func (c *UserControllerAuth) ProfileDetails(_ string) datatransfers.Response
@Title Get User Details @Success 200 {object} models.Object @Param stub query string false "stub" @router /info [get]
type VideoController ¶
type VideoController struct { beego.Controller Handler handlers.Handler }
Video Content Controller
func (*VideoController) GetDetails ¶
func (c *VideoController) GetDetails(hash, username string) datatransfers.Response
@Title Get Details @Success 200 {object} models.Object @Param hash query string true "hash" @Param username query string false "username" @router /details [get]
func (*VideoController) GetList ¶
func (c *VideoController) GetList(variant, author string, count, offset int) datatransfers.Response
@Title Get List @Success 200 {object} models.Object @Param variant query string false "variant" @Param author query string false "author" @Param count query int false 8 "count" @Param offset query int false 0 "offset" @router /list [get]
func (*VideoController) Search ¶
func (c *VideoController) Search(query string, count, offset int) datatransfers.Response
@Title Search @Success 200 {object} models.Object @Param query query string true "query" @Param count query int false 8 "count" @Param offset query int false 0 "offset" @router /search [get]
type VideoControllerAuth ¶
type VideoControllerAuth struct { beego.Controller Handler handlers.Handler // contains filtered or unexported fields }
Video Content Controller
func (*VideoControllerAuth) CommentVideo ¶
func (c *VideoControllerAuth) CommentVideo(info datatransfers.CommentBody) datatransfers.Response
@Title Content Video @Success 200 {object} models.Object @Param info body {datatransfers.LikeBody} true "body" @router /comment [post]
func (*VideoControllerAuth) DeleteVideo ¶
func (c *VideoControllerAuth) DeleteVideo(hash string) datatransfers.Response
@Title Delete Video @Success 200 {object} models.Object @Param hash query string true "hash" @router /delete [delete]
func (*VideoControllerAuth) EditVideo ¶
func (c *VideoControllerAuth) EditVideo(_ string) datatransfers.Response
@Title Edit Video @Success 200 {object} models.Object @Param stub query string false "stub" @router /edit [put]
func (*VideoControllerAuth) GetCheckUnique ¶
func (c *VideoControllerAuth) GetCheckUnique(title string) datatransfers.Response
@Title Check Title @Param title query string true "title" @Success 200 success @router /check [get]
func (*VideoControllerAuth) GetList ¶
func (c *VideoControllerAuth) GetList(variant, author string, count, offset int) datatransfers.Response
@Title Get List @Success 200 {object} models.Object @Param variant query string false "variant" @Param author query string false "author" @Param count query int false 8 "count" @Param offset query int false 0 "offset" @router /list [get]
func (*VideoControllerAuth) LikeVideo ¶
func (c *VideoControllerAuth) LikeVideo(info datatransfers.LikeBody) datatransfers.Response
@Title Like Video @Success 200 {object} models.Object @Param info body {datatransfers.LikeBody} true "body" @router /like [post]
func (*VideoControllerAuth) Prepare ¶
func (c *VideoControllerAuth) Prepare()
func (*VideoControllerAuth) SubscribeAuthor ¶
func (c *VideoControllerAuth) SubscribeAuthor(info datatransfers.SubscribeBody) datatransfers.Response
@Title Subscribe @Success 200 {object} models.Object @Param info body {datatransfers.SubscribeBody} true "body" @router /subscribe [post]
func (*VideoControllerAuth) UploadVideo ¶
func (c *VideoControllerAuth) UploadVideo(_ string) datatransfers.Response
@Title Upload Video @Success 200 {object} models.Object @Param stub query string false "stub" @router /upload [post]
type WebSocketController ¶
type WebSocketController struct { beego.Controller Handler handlers.Handler }
WebSocket Chat Controller
func (*WebSocketController) Connect ¶
func (c *WebSocketController) Connect(hash string, _ string)
@Title Connect @Success 200 success @router /chat/:hash [get]
type WebSocketControllerAuth ¶
type WebSocketControllerAuth struct { beego.Controller Handler handlers.Handler // contains filtered or unexported fields }
WebSocket Chat Controller
func (*WebSocketControllerAuth) ConnectChat ¶
func (c *WebSocketControllerAuth) ConnectChat(hash string, _ string)
@Title Connect Chat @Success 200 success @Param access_token query string false "Bearer token" "" @router /chat/:hash [get]
func (*WebSocketControllerAuth) ConnectNotification ¶
func (c *WebSocketControllerAuth) ConnectNotification(_ string)
@Title Connect Notification @Success 200 success @Param access_token query string false "Bearer token" "" @router /notification [get]
func (*WebSocketControllerAuth) Prepare ¶
func (c *WebSocketControllerAuth) Prepare()