Documentation ¶
Index ¶
- Variables
- func Init()
- func PublishCoverToOss(objectKey string, coverReader *bytes.Reader) error
- func PublishVideoToOss(objectKey string, filePath string) error
- func PublishVideoToPublic(video []byte, filePath string) error
- func QueryOssCoverURL(objectKey string) (string, error)
- func QueryOssVideoURL(objectKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Bucket *oss.Bucket
View Source
var Path string
Functions ¶
func PublishCoverToOss ¶
上传封面到Oss
func PublishVideoToOss ¶
分片将视频上传到Oss
func PublishVideoToPublic ¶
将视频保存到本地文件夹中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.