handler

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.29.0

type Config interface {
	DefaultTimestamp() bool
	ZipCompression() bool
	ClientCut() bool
	BufferMaxSizeForPut() uint64
	NamespaceHeader() string
}

type Handler

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

func New

func New(params *utils.AppParams, config Config, tree *tree.Tree) *Handler

func (*Handler) DownloadByAddressOrBucketName

func (h *Handler) DownloadByAddressOrBucketName(c *fasthttp.RequestCtx)

DownloadByAddressOrBucketName handles download requests using simple cid/oid or bucketname/key format.

func (*Handler) DownloadByAttribute

func (h *Handler) DownloadByAttribute(c *fasthttp.RequestCtx)

DownloadByAttribute handles attribute-based download requests.

func (*Handler) DownloadZipped

func (h *Handler) DownloadZipped(c *fasthttp.RequestCtx)

DownloadZipped handles zip by prefix requests.

func (*Handler) HeadByAddressOrBucketName

func (h *Handler) HeadByAddressOrBucketName(c *fasthttp.RequestCtx)

HeadByAddressOrBucketName handles head requests using simple cid/oid or bucketname/key format.

func (*Handler) HeadByAttribute

func (h *Handler) HeadByAttribute(c *fasthttp.RequestCtx)

HeadByAttribute handles attribute-based head requests.

func (*Handler) Upload

func (h *Handler) Upload(req *fasthttp.RequestCtx)

Upload handles multipart upload request.

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.

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