handler

package
v0.28.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(params *utils.AppParams, settings *Settings, 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.

type Settings

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

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

func (*Settings) DefaultTimestamp

func (s *Settings) DefaultTimestamp() bool

func (*Settings) SetDefaultTimestamp

func (s *Settings) SetDefaultTimestamp(val bool)

func (*Settings) SetZipCompression

func (s *Settings) SetZipCompression(val bool)

func (*Settings) ZipCompression

func (s *Settings) ZipCompression() bool

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