Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HuaWeiObs = new(Obs)
Functions ¶
func NewHuaWeiObsClient ¶
Types ¶
type AliyunOSS ¶
type AliyunOSS struct{}
func (*AliyunOSS) DeleteFile ¶
func (*AliyunOSS) UploadBase64 ¶
func (*AliyunOSS) UploadFile ¶
type AwsS3 ¶
type AwsS3 struct{}
func (*AwsS3) DeleteFile ¶
func (*AwsS3) UploadBase64 ¶
func (*AwsS3) UploadFile ¶
type Local ¶
type Local struct{}
func (*Local) DeleteFile ¶
func (*Local) UploadBase64 ¶
func (*Local) UploadFile ¶
type OSS ¶
type OSS interface { UploadFile(file *multipart.FileHeader) (string, string, error) UploadUrl(fileUrl, filename string) (string, string, error) UploadBase64(base64Str, filename string) (string, string, error) DeleteFile(key string) error }
OSS 对象存储接口
type Obs ¶
type Obs struct{}
func (*Obs) DeleteFile ¶
func (*Obs) UploadBase64 ¶
func (*Obs) UploadFile ¶
type Qiniu ¶
type Qiniu struct{}
func (*Qiniu) DeleteFile ¶
func (*Qiniu) UploadBase64 ¶
func (*Qiniu) UploadFile ¶
type TencentCOS ¶
type TencentCOS struct{}
func (*TencentCOS) DeleteFile ¶
func (*TencentCOS) DeleteFile(key string) error
DeleteFile delete file form COS
func (*TencentCOS) UploadBase64 ¶
func (c *TencentCOS) UploadBase64(base64Str, filename string) (string, string, error)
func (*TencentCOS) UploadFile ¶
func (*TencentCOS) UploadFile(file *multipart.FileHeader) (string, string, error)
UploadFile upload file to COS
Click to show internal directories.
Click to hide internal directories.