Discover Packages
github.com/shichen437/gowlive
api
v1
media
package
Version:
v0.0.9
Opens a new window with list of versions in this module.
Published: Nov 14, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DeleteFileCheckReq struct {
g .Meta `path:"/media/check/{id}" method:"delete" tags:"文件检测" summary:"删除文件检测任务"`
Id int `json:"id" v:"required#任务 ID不能为空"`
}
type DeleteFileCheckRes struct {
g .Meta `mime:"application/json"`
}
type DeleteFileReq struct {
g .Meta `path:"/media/file" method:"delete" tags:"文件管理" summary:"删除文件"`
Filename string `json:"filename" v:"required-with:Path#路径为空时文件名必选"`
Path string `json:"path"`
}
type DeleteFileRes struct {
g .Meta `mime:"application/json"`
}
type GetAnchorFilePathReq struct {
g .Meta `path:"/media/file/roomPath" method:"get" tags:"文件管理" summary:"获取主播录制文件路径"`
Anchor string `json:"anchor"`
Platform string `json:"platform"`
}
type GetAnchorFilePathRes struct {
g .Meta `mime:"application/json"`
Path string `json:"path"`
}
type GetFileCheckListReq struct {
g .Meta `path:"/media/check/list" method:"get" tags:"文件检测" summary:"获取文件检测任务列表"`
Path string `json:"path"`
Filename string `json:"filename"`
}
type GetFileCheckListRes struct {
g .Meta `mime:"application/json"`
Rows []*entity .FileCheckTask `json:"rows"`
Total int `json:"total"`
Executing bool `json:"executing"`
}
type GetFileListReq struct {
g .Meta `path:"/media/file/list" method:"get" tags:"文件管理" summary:"获取文件列表"`
Path string `json:"path"`
Filename string `json:"filename"`
}
type GetFileListRes struct {
g .Meta `mime:"application/json"`
Rows []*model .FileInfo `json:"rows"`
}
type GetFilePlayReq struct {
g .Meta `path:"/media/file/play" method:"get,post,head,options,trace" tags:"文件管理" summary:"媒体文件流式传输"`
Path string `p:"path" v:"required#文件路径不能为空"`
}
type GetFilePlayRes struct {
g .Meta `mime:"application/octet-stream"`
}
type PostFileCheckReq struct {
g .Meta `path:"/media/check" method:"post" tags:"文件检测" summary:"新增文件检测任务"`
Path string `json:"path" v:"required#路径不能为空"`
Filename string `json:"filename" v:"required#文件名称不能为空"`
}
type PostFileCheckRes struct {
g .Meta `mime:"application/json"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.