upload

package
v0.0.0-...-88294d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct{}

func (Local) DeleteFile

func (l Local) DeleteFile(key string) error

DeleteFile 删除文件

func (Local) UploadFile

func (l Local) UploadFile(file *multipart.FileHeader) (string, string, error)

UploadFile 上传文件

type OSS

type OSS interface {
	UploadFile(file *multipart.FileHeader) (string, string, error)
	DeleteFile(key string) error
}
var Oss OSS

func NewOss

func NewOss() OSS

type Qiniu

type Qiniu struct{}

func (*Qiniu) DeleteFile

func (*Qiniu) DeleteFile(key string) error

DeleteFile 删除文件

func (*Qiniu) UploadFile

func (*Qiniu) UploadFile(file *multipart.FileHeader) (string, string, error)

Upload 上传文件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL