oss

package
v0.0.0-...-cb3206a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Init

func Init()

func PublishCoverToOss

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

上传封面到Oss

func PublishVideoToOss

func PublishVideoToOss(objectKey string, filePath string) error

分片将视频上传到Oss

func PublishVideoToPublic

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

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

func QueryOssCoverURL

func QueryOssCoverURL(objectKey string) (string, error)

从oss上获取封面地址

func QueryOssVideoURL

func QueryOssVideoURL(objectKey string) (string, error)

从oss上获取播放地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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