Documentation ¶
Index ¶
- Variables
- func MD5V(str []byte, b ...byte) string
- type Minio
- func (m *Minio) DeleteFile(key string) error
- func (m *Minio) UploadFileWithPrefix(fileName string, file io.Reader, fileSize int64, prefix string) (string, string, error)
- func (m *Minio) UploadMultipartFile(multipartFile *multipart.FileHeader) (string, string, error)
- func (m *Minio) UploadMultipartFileWithPrefix(multipartFile *multipart.FileHeader, prefix string) (string, string, error)
- type OSS
Constants ¶
This section is empty.
Variables ¶
View Source
var MemoryTooLargeError = fmt.Errorf("文件过大")
TODO 当上传文件过大时候 返回此Error
Functions ¶
Types ¶
type Minio ¶
type Minio struct { *minio.Client // contains filtered or unexported fields }
func (*Minio) DeleteFile ¶
func (*Minio) UploadFileWithPrefix ¶
func (*Minio) UploadMultipartFile ¶
func (*Minio) UploadMultipartFileWithPrefix ¶
type OSS ¶
type OSS interface { UploadMultipartFile(file *multipart.FileHeader) (string, string, error) UploadMultipartFileWithPrefix(multipartFile *multipart.FileHeader, prefix string) (string, string, error) UploadFileWithPrefix(fileName string, file io.Reader, fileSize int64, prefix string) (string, string, error) DeleteFile(key string) error }
Click to show internal directories.
Click to hide internal directories.