video

package
v0.0.0-...-6db71ed Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeedVideoListHandler

func FeedVideoListHandler(c *gin.Context)

func PostFavorHandler

func PostFavorHandler(c *gin.Context)

func PublishVideoError

func PublishVideoError(c *gin.Context, msg string)

func PublishVideoHandler

func PublishVideoHandler(c *gin.Context)

PublishVideoHandler 发布视频,并截取一帧画面作为封面

func PublishVideoOk

func PublishVideoOk(c *gin.Context, msg string)

func QueryFavorVideoListHandler

func QueryFavorVideoListHandler(c *gin.Context)

func QueryVideoListHandler

func QueryVideoListHandler(c *gin.Context)

Types

type FavorVideoListResponse

type FavorVideoListResponse struct {
	models.CommonResponse
	*video.FavorList
}

type FeedResponse

type FeedResponse struct {
	models.CommonResponse
	*video.FeedVideoList
}

type ListResponse

type ListResponse struct {
	models.CommonResponse
	*video.List
}

type ProxyFavorVideoListHandler

type ProxyFavorVideoListHandler struct {
	*gin.Context
	// contains filtered or unexported fields
}

func NewProxyFavorVideoListHandler

func NewProxyFavorVideoListHandler(c *gin.Context) *ProxyFavorVideoListHandler

func (*ProxyFavorVideoListHandler) Do

func (*ProxyFavorVideoListHandler) SendError

func (p *ProxyFavorVideoListHandler) SendError(msg string)

func (*ProxyFavorVideoListHandler) SendOk

func (p *ProxyFavorVideoListHandler) SendOk(favorList *video.FavorList)

type ProxyFeedVideoList

type ProxyFeedVideoList struct {
	*gin.Context
}

func NewProxyFeedVideoList

func NewProxyFeedVideoList(c *gin.Context) *ProxyFeedVideoList

func (*ProxyFeedVideoList) DoHasToken

func (p *ProxyFeedVideoList) DoHasToken(token string) error

DoHasToken 如果是登录状态,则生成UserId字段

func (*ProxyFeedVideoList) DoNoToken

func (p *ProxyFeedVideoList) DoNoToken() error

DoNoToken 未登录的视频流推送处理

func (*ProxyFeedVideoList) FeedVideoListError

func (p *ProxyFeedVideoList) FeedVideoListError(msg string)

func (*ProxyFeedVideoList) FeedVideoListOk

func (p *ProxyFeedVideoList) FeedVideoListOk(videoList *video.FeedVideoList)

type ProxyPostFavorHandler

type ProxyPostFavorHandler struct {
	*gin.Context
	// contains filtered or unexported fields
}

func NewProxyPostFavorHandler

func NewProxyPostFavorHandler(c *gin.Context) *ProxyPostFavorHandler

func (*ProxyPostFavorHandler) Do

func (p *ProxyPostFavorHandler) Do()

func (*ProxyPostFavorHandler) SendError

func (p *ProxyPostFavorHandler) SendError(msg string)

func (*ProxyPostFavorHandler) SendOk

func (p *ProxyPostFavorHandler) SendOk()

type ProxyQueryVideoList

type ProxyQueryVideoList struct {
	// contains filtered or unexported fields
}

ProxyQueryVideoList 代理类

func NewProxyQueryVideoList

func NewProxyQueryVideoList(c *gin.Context) *ProxyQueryVideoList

func (*ProxyQueryVideoList) DoQueryVideoListByUserId

func (p *ProxyQueryVideoList) DoQueryVideoListByUserId(rawId interface{}) error

DoQueryVideoListByUserId 根据userId字段进行查询

func (*ProxyQueryVideoList) QueryVideoListError

func (p *ProxyQueryVideoList) QueryVideoListError(msg string)

func (*ProxyQueryVideoList) QueryVideoListOk

func (p *ProxyQueryVideoList) QueryVideoListOk(videoList *video.List)

Jump to

Keyboard shortcuts

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