qiniu

package
v0.0.0-...-b2a22a5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QiniuConfig = new(QiniuConfigType)

Functions

func Upload

func Upload(file multipart.File, fileHeader *multipart.FileHeader) (string, error)

Types

type QiniuConfigType

type QiniuConfigType struct {
	AccessKey  string // 七牛云accessKey
	SecretKey  string // 七牛云secretKey
	Bucket     string // 七牛云存储空间
	Domain     string // 七牛云图片域名
	FilePath   string // 上传到服务器的文件路径
	IsDelLocal bool   // 上传之后是否删除本地文件
}

Jump to

Keyboard shortcuts

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