uploader

package
v0.8.75 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TUSDUploader

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

func (*TUSDUploader) DelFile

func (u *TUSDUploader) DelFile(w http.ResponseWriter, r *http.Request)

func (*TUSDUploader) GetCompletedUploadsChan

func (u *TUSDUploader) GetCompletedUploadsChan() chan tusd.HookEvent

func (*TUSDUploader) GetCreatedUploadsChan

func (u *TUSDUploader) GetCreatedUploadsChan() chan tusd.HookEvent

func (*TUSDUploader) GetFile

func (u *TUSDUploader) GetFile(w http.ResponseWriter, r *http.Request)

func (*TUSDUploader) GetTerminatedUploadsChan

func (u *TUSDUploader) GetTerminatedUploadsChan() chan tusd.HookEvent

func (*TUSDUploader) GetUploadProgressChan

func (u *TUSDUploader) GetUploadProgressChan() chan tusd.HookEvent

func (*TUSDUploader) HeadFile

func (u *TUSDUploader) HeadFile(w http.ResponseWriter, r *http.Request)

func (*TUSDUploader) Metrics

func (u *TUSDUploader) Metrics() tusd.Metrics

func (*TUSDUploader) Middleware

func (u *TUSDUploader) Middleware(h http.Handler) http.Handler

func (*TUSDUploader) PatchFile

func (u *TUSDUploader) PatchFile(w http.ResponseWriter, r *http.Request)

func (*TUSDUploader) PostFile

func (u *TUSDUploader) PostFile(w http.ResponseWriter, r *http.Request)

func (*TUSDUploader) SupportedExtensions

func (u *TUSDUploader) SupportedExtensions() string

type Uploader

type Uploader interface {
	PostFile(w http.ResponseWriter, r *http.Request)
	PatchFile(w http.ResponseWriter, r *http.Request)
	DelFile(w http.ResponseWriter, r *http.Request)
	GetFile(w http.ResponseWriter, r *http.Request)
	HeadFile(w http.ResponseWriter, r *http.Request)
	Middleware(h http.Handler) http.Handler
	SupportedExtensions() string
	Metrics() tusd.Metrics
	GetCreatedUploadsChan() chan tusd.HookEvent
	GetCompletedUploadsChan() chan tusd.HookEvent
	GetTerminatedUploadsChan() chan tusd.HookEvent
	GetUploadProgressChan() chan tusd.HookEvent
}

func NewTUSDUploader

func NewTUSDUploader(c tusd.Config) Uploader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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