uploader

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: GPL-3.0 Imports: 24 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
	ContentType() string
	FileName() string
}

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

type Settings added in v0.25.0

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

Settings stores reloading parameters, so it has to provide atomic getters and setters.

func (*Settings) DefaultTimestamp added in v0.25.0

func (s *Settings) DefaultTimestamp() bool

func (*Settings) SetDefaultTimestamp added in v0.25.0

func (s *Settings) SetDefaultTimestamp(val bool)

func (*Settings) SetMaxObjectSize added in v0.27.2

func (s *Settings) SetMaxObjectSize(val int64)

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, settings *Settings, signer user.Signer) *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.

Directories

Path Synopsis
Package multipart implements MIME multipart parsing, as defined in RFC 2046.
Package multipart implements MIME multipart parsing, as defined in RFC 2046.

Jump to

Keyboard shortcuts

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