oss

package
v0.0.0-...-dfc68d5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bucket *oss.Bucket
View Source
var Path string

Functions

func GetAvatar

func GetAvatar() string

GetAvatar 获取用户头像

func GetBackground

func GetBackground() string

GetBackground 获取用户头像

func Init

func Init()

func PublishAvatarInit

func PublishAvatarInit() error

func PublishBackgroundInit

func PublishBackgroundInit() error

func PublishCoverToOss

func PublishCoverToOss(objectKey string, coverReader *bytes.Reader) error

PublishCoverToOss 上传封面到Oss

func PublishVideoToOss

func PublishVideoToOss(objectKey string, filePath string) error

PublishVideoToOss 分片将视频上传到Oss

func PublishVideoToPublic

func PublishVideoToPublic(video []byte, filePath string) error

PublishVideoToPublic 将视频保存到本地文件夹中

func QueryOssCoverURL

func QueryOssCoverURL(objectKey string) (string, error)

QueryOssCoverURL 从oss上获取封面地址

func QueryOssVideoURL

func QueryOssVideoURL(objectKey string) (string, error)

QueryOssVideoURL 从oss上获取播放地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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