file

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(c UploadFun, form *multipart.Form) (*multipart.Form, error)

Types

type FileUploader

type FileUploader interface {
	Upload(*multipart.Form) (*multipart.Form, error)
}

func GetFileEngine

func GetFileEngine(name string) FileUploader

type LocalFileUploader

type LocalFileUploader struct {
	BasePath string
}

func GetLocalFileUploader

func GetLocalFileUploader() *LocalFileUploader

func (*LocalFileUploader) Upload

func (local *LocalFileUploader) Upload(form *multipart.Form) (*multipart.Form, error)

type UploadFun

type UploadFun func(*multipart.FileHeader, string) (string, error)

Jump to

Keyboard shortcuts

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