Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileNameWithDateTime ¶
Types ¶
type Aliyun ¶
type Aliyun struct {
// contains filtered or unexported fields
}
func NewAliyunOSS ¶
func (*Aliyun) DeleteFile ¶
type FileInfo ¶
type FileInfo struct {
IsDir bool `json:"is_dir"` // 是否是目录
FilePath string `json:"file_path"` // 文件路径
FileName string `json:"file_name"` // 文件名
FileType string `json:"file_type"` // 文件类型
FileSize int64 `json:"file_size"` // 文件大小
FileUrl string `json:"file_url"` // 文件访问地址
UpTime int64 `json:"up_time"` // 上传时间
}
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) DeleteFile ¶
type OSS ¶
type OSS interface {
// return BucketUrl+BasePath+prefix+filename
UploadFile(f io.Reader, prefix string, filename string) (filepath string, err error)
DeleteFile(filepath string) error
ListFiles(prefix string, limit int) (files []*FileInfo, err error)
}
OSS(Object Storage Service,对象存储服务)
type Qiniu ¶
type Qiniu struct {
// contains filtered or unexported fields
}
https://developer.qiniu.com/kodo/1238/go
func (*Qiniu) DeleteFile ¶
Click to show internal directories.
Click to hide internal directories.