Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOSS ¶
type AliyunOSS struct {
// contains filtered or unexported fields
}
func NewAliyunOSS ¶
func NewAliyunOSS(cfg *properties.Aliyun) (*AliyunOSS, error)
func (*AliyunOSS) DeleteFile ¶
func (*AliyunOSS) UploadFile ¶
type Local ¶
func NewLocal ¶
func NewLocal(cfg *properties.Local) *Local
func (*Local) DeleteFile ¶
func (*Local) UploadFile ¶
type Qiniu ¶
type Qiniu struct {
// contains filtered or unexported fields
}
https://developer.qiniu.com/kodo/1238/go
func NewQiniu ¶
func NewQiniu(conf *properties.Aliyun) *Qiniu
func (*Qiniu) DeleteFile ¶
func (*Qiniu) UploadFile ¶
type Uploader ¶
type Uploader interface { UploadFile(prefix string, file *multipart.FileHeader) (string, error) DeleteFile(key string) error }
Uploader 对象存储接口 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
func NewOss ¶
func NewOss(cfg *properties.Upload) Uploader
NewOss OSS的实例化方法 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
Click to show internal directories.
Click to hide internal directories.