uploader

package
v1.1.19 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonStore added in v0.9.37

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

func (*AmazonStore) UseIn added in v0.9.37

func (s *AmazonStore) UseIn(composer *tusd.StoreComposer)

type GoogleStore added in v0.9.37

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

func (*GoogleStore) UseIn added in v0.9.37

func (s *GoogleStore) UseIn(composer *tusd.StoreComposer)

type Store added in v0.9.37

type Store interface {
	UseIn(composer *tusd.StoreComposer)
}

func GetStore added in v0.9.37

func GetStore(OSSClient interface{}, bucket string) Store

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) GetBucket added in v0.9.38

func (u *TUSDUploader) GetBucket() string

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
	GetBucket() string
}

func NewTUSDUploader

func NewTUSDUploader(c tusd.Config, bucket string) Uploader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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