oss

package
v0.0.0-...-f1d9293 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MQ_channel = make(chan *VideoOBJ, 100)

MQ_channel:用于传送储存请求 不使用集群,所以不使用MQ

Functions

func Bucket

func Bucket() *oss.Bucket

Bucket:获取oss上Client的bucket存储空间

func GetClient

func GetClient() *oss.Client

GetClient:获取oss的Client

func GetURL

func GetURL(filePath string) string

GetURL:根据视频地址返回可播放的URL

func Init

func Init()

Init:持续消费MQ_channel里的转存请求

func Redeposit

func Redeposit(video *VideoOBJ)

Redeposit:转存文件

Types

type VideoOBJ

type VideoOBJ struct {
	File      *os.File
	Cover     *os.File
	VideoMeta model.Video
}

通信结构体

Jump to

Keyboard shortcuts

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