Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AliyunOSS ¶
type AliyunOSS struct{}
type AwsS3 ¶
type AwsS3 struct{}
type Local ¶
type Local struct{}
type OSS ¶
type OSS interface { UploadFile(file *multipart.FileHeader) (string, string, error) DeleteFile(key string) error }
OSS 对象存储接口 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
func NewOss ¶
func NewOss() OSS
NewOss OSS的实例化方法 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
type Obs ¶
type Obs struct{}
type Qiniu ¶
type Qiniu struct{}
type TencentCOS ¶
type TencentCOS struct{}
func (*TencentCOS) DeleteFile ¶
func (*TencentCOS) DeleteFile(key string) error
DeleteFile delete file form COS
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.