uploader

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipartFile

type MultipartFile interface {
	io.ReadCloser
	FileName() string
}

MultipartFile provides standard ReadCloser interface and also allows one to get file name, it's used for multipart uploads.

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

Uploader is an upload request handler.

func New

func New(ctx context.Context, params *utils.AppParams, enableDefaultTimestamp bool) *Uploader

New creates a new Uploader using specified logger, connection pool and other options.

func (*Uploader) Upload

func (u *Uploader) Upload(c *fasthttp.RequestCtx)

Upload handles multipart upload request.

Jump to

Keyboard shortcuts

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