prepare

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopChecker uploadClient.Checker = func(r *uploadClient.Result) error {
	return nil
}

Functions

This section is empty.

Types

type PrepareData

type PrepareData struct {
	StorerInfo storer.Info
	DBSaver    dbsaver.DBSaver
	Checker    uploadClient.Checker
	Checkin    checker.Checker
	Subdir     string
	FileType   string
	// contains filtered or unexported fields
}

func Prepare

func Prepare(ctx echo.Context, subdir string, fileType string, storerInfo storer.Info) (*PrepareData, error)

Prepare 上传前的环境准备

func (*PrepareData) Close

func (p *PrepareData) Close() error

func (*PrepareData) Storer

func (p *PrepareData) Storer(ctx echo.Context) (driver.Storer, error)

Jump to

Keyboard shortcuts

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