Documentation ¶
Index ¶
- Variables
- func GetAvatar() string
- func GetBackground() string
- func Init()
- func PublishAvatarInit() error
- func PublishBackgroundInit() error
- 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 PublishAvatarInit ¶
func PublishAvatarInit() error
func PublishBackgroundInit ¶
func PublishBackgroundInit() error
func PublishCoverToOss ¶
PublishCoverToOss 上传封面到Oss
func PublishVideoToOss ¶
PublishVideoToOss 分片将视频上传到Oss
func PublishVideoToPublic ¶
PublishVideoToPublic 将视频保存到本地文件夹中
func QueryOssCoverURL ¶
QueryOssCoverURL 从oss上获取封面地址
func QueryOssVideoURL ¶
QueryOssVideoURL 从oss上获取播放地址
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.