qcloud

package
v0.0.0-...-f59483c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.SugaredLogger
)

Functions

This section is empty.

Types

type COSHostingService

type COSHostingService struct {
	// contains filtered or unexported fields
}

COSHostingService 腾讯云对象存储图床服务 Go SDK文档 https://cloud.tencent.com/document/product/436/31215

func NewCOSHostingService

func NewCOSHostingService(bucketName, secretId, secretKey string) (*COSHostingService, error)

func (*COSHostingService) IsExist

func (svc *COSHostingService) IsExist(ctx context.Context, filename string) (isExists bool, err error)

func (*COSHostingService) IsHostingURL

func (svc *COSHostingService) IsHostingURL(imgUrl *url.URL) bool

func (*COSHostingService) Upload

func (svc *COSHostingService) Upload(ctx context.Context, filename string, raw []byte) (u *url.URL, err error)

Jump to

Keyboard shortcuts

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