Documentation ¶
Index ¶
Constants ¶
View Source
const ( StorageTypeOss = "oss" StorageTypeCos = "cos" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
FileInterface
}
type FileInterface ¶
type FileInterface interface { ImgToken(bucket, key string) (interface{}, error) // 获取上传凭证 ImgUrl(bucket, key string) string // 获取图片地址 }
func Make ¶
func Make(uploadChannel, conf interface{}) FileInterface
Click to show internal directories.
Click to hide internal directories.