Documentation
¶
Index ¶
- type DeleteAllHistoryReq
- type DeleteAllHistoryRes
- type DeleteAnchorReq
- type DeleteAnchorRes
- type DeleteLiveCookieReq
- type DeleteLiveCookieRes
- type DeleteLiveHistoryReq
- type DeleteLiveHistoryRes
- type DeleteLiveManageReq
- type DeleteLiveManageRes
- type ExportRoomInfoReq
- type ExportRoomInfoRes
- type GetAllCookieReq
- type GetAllCookieRes
- type GetAnchorListReq
- type GetAnchorListRes
- type GetAnchorStatInfoReq
- type GetAnchorStatInfoRes
- type GetLiveHistoryListReq
- type GetLiveHistoryListRes
- type GetLiveManageReq
- type GetLiveManageRes
- type GetRoomListReq
- type GetRoomListRes
- type PostAnchorReq
- type PostAnchorRes
- type PostLiveCookieReq
- type PostLiveCookieRes
- type PostLiveManageBatchReq
- type PostLiveManageBatchRes
- type PostLiveManageReq
- type PostLiveManageRes
- type PutLiveCookieReq
- type PutLiveCookieRes
- type PutLiveManageReq
- type PutLiveManageRes
- type PutLiveManageStartReq
- type PutLiveManageStartRes
- type PutLiveManageStopReq
- type PutLiveManageStopRes
- type PutLiveManageTopReq
- type PutLiveManageTopRes
- type PutLiveManageUnTopReq
- type PutLiveManageUnTopRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteAllHistoryReq ¶ added in v0.1.1
type DeleteAllHistoryRes ¶ added in v0.1.1
type DeleteAnchorReq ¶ added in v0.0.3
type DeleteAnchorRes ¶ added in v0.0.3
type DeleteLiveCookieReq ¶
type DeleteLiveCookieRes ¶
type DeleteLiveHistoryReq ¶
type DeleteLiveHistoryRes ¶
type DeleteLiveManageReq ¶
type DeleteLiveManageRes ¶
type ExportRoomInfoReq ¶ added in v0.0.9
type ExportRoomInfoRes ¶ added in v0.0.9
type GetAllCookieReq ¶
type GetAllCookieRes ¶
type GetAllCookieRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.LiveCookie `json:"rows"`
}
type GetAnchorListReq ¶ added in v0.0.3
type GetAnchorListRes ¶ added in v0.0.3
type GetAnchorListRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.AnchorInfo `json:"rows"`
Total int `json:"total"`
}
type GetAnchorStatInfoReq ¶ added in v0.0.4
type GetAnchorStatInfoRes ¶ added in v0.0.4
type GetAnchorStatInfoRes struct {
g.Meta `mime:"application/json"`
Data *model.AnchorStatInfo `json:"data"`
}
type GetLiveHistoryListReq ¶
type GetLiveHistoryListRes ¶
type GetLiveHistoryListRes struct {
g.Meta `mime:"application/json"`
Rows []*entity.LiveHistory `json:"rows"`
Total int `json:"total"`
}
type GetLiveManageReq ¶
type GetLiveManageRes ¶
type GetLiveManageRes struct {
g.Meta `mime:"application/json"`
Data *entity.LiveManage `json:"data"`
}
type GetRoomListReq ¶
type GetRoomListRes ¶
type PostAnchorReq ¶ added in v0.0.3
type PostAnchorRes ¶ added in v0.0.3
type PostLiveCookieReq ¶
type PostLiveCookieReq struct {
g.Meta `path:"/live/cookie" method:"post" tags:"直播管理" summary:"添加直播cookie"`
Platform string `json:"platform" dc:"直播平台" v:"required#stream.cookie.valid.PlatformRequired"`
Cookie string `json:"cookie" dc:"直播cookie" v:"required#stream.cookie.valid.CookieRequired"`
Remark string `json:"remark" dc:"备注" v:"max-length:45#stream.cookie.valid.RemarkMaxLength"`
}
type PostLiveCookieRes ¶
type PostLiveManageBatchReq ¶ added in v0.0.6
type PostLiveManageBatchReq struct {
g.Meta `path:"/live/room/manage/batch" method:"post" tags:"直播管理" summary:"批量添加直播间"`
RoomUrls []string `` /* 156-byte string literal not displayed */
Interval int `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
Format string `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
Remark string `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}
type PostLiveManageBatchRes ¶ added in v0.0.6
type PostLiveManageReq ¶
type PostLiveManageReq struct {
g.Meta `path:"/live/room/manage" method:"post" tags:"直播管理" summary:"创建直播房间"`
RoomUrl string `json:"roomUrl" v:"required|url#stream.live.valid.RoomUrlRequired|stream.live.valid.RoomUrlFormat"`
Interval int `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
Format string `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
MonitorType int `json:"monitorType" v:"required|in:0,1,2,3#stream.live.valid.MonitorTypeRequired|stream.live.valid.MonitorTypeInvalid"`
MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#stream.live.valid.MonitorStartTimeRequired"`
MonitorStopAt string `` /* 150-byte string literal not displayed */
Quality int `json:"quality" v:"required|in:0,1,2,3,4#stream.live.valid.QualityRequired|stream.live.valid.QualityInvalid"`
SegmentTime int `json:"segmentTime" v:"required#stream.live.valid.SliceTimeRequired"`
Remark string `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}
type PostLiveManageRes ¶
type PutLiveCookieReq ¶
type PutLiveCookieReq struct {
g.Meta `path:"/live/cookie" method:"put" tags:"直播管理" summary:"修改直播cookie"`
Id int `json:"id" dc:"直播cookie id" v:"required#stream.cookie.valid.IDRequired"`
Cookie string `json:"cookie" dc:"直播cookie" v:"required#stream.cookie.valid.CookieRequired"`
Remark string `json:"remark" dc:"备注" v:"max-length:45#stream.cookie.valid.RemarkMaxLength"`
}
type PutLiveCookieRes ¶
type PutLiveManageReq ¶
type PutLiveManageReq struct {
g.Meta `path:"/live/room/manage" method:"put" tags:"直播管理" summary:"更新直播房间"`
Id int `json:"id" dc:"直播房间ID" v:"min:1#stream.live.valid.RoomIDRequired"`
Interval int `json:"interval" v:"required|min:30#stream.live.valid.IntervalRequired|stream.live.valid.IntervalMin"`
Format string `json:"format" v:"required|in:flv,mp4,mkv,ts,mp3#stream.live.valid.RecordFormatRequired|stream.live.valid.RecordFormatInvalid"`
MonitorType int `json:"monitorType" v:"required|in:0,1,2,3#stream.live.valid.MonitorTypeRequired|stream.live.valid.MonitorTypeInvalid"`
MonitorStartAt string `json:"monitorStartAt" v:"required-if:monitorType,2#stream.live.valid.MonitorStartTimeRequired"`
MonitorStopAt string `` /* 150-byte string literal not displayed */
Quality int `json:"quality" v:"required|in:0,1,2,3,4#stream.live.valid.QualityRequired|stream.live.valid.QualityInvalid"`
SegmentTime int `json:"segmentTime" v:"required#stream.live.valid.SliceTimeRequired"`
Remark string `json:"remark" v:"max-length:45#stream.live.valid.RemarkMaxLength"`
}
type PutLiveManageRes ¶
type PutLiveManageStartReq ¶ added in v0.0.4
type PutLiveManageStartRes ¶ added in v0.0.4
type PutLiveManageStopReq ¶ added in v0.0.4
type PutLiveManageStopRes ¶ added in v0.0.4
type PutLiveManageTopReq ¶ added in v0.0.9
type PutLiveManageTopRes ¶ added in v0.0.9
type PutLiveManageUnTopReq ¶ added in v0.0.9
type PutLiveManageUnTopRes ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.