uploader

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.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 AliOSSUploader

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

type AzureUploader

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

type CustomRetryer added in v1.8.1

type CustomRetryer struct {
	client.DefaultRetryer
}

CustomRetryer wraps the SDK's built in DefaultRetryer adding additional custom features. Namely, to always retry.

func (CustomRetryer) ShouldRetry added in v1.8.1

func (r CustomRetryer) ShouldRetry(req *request.Request) bool

ShouldRetry overrides the SDK's built in DefaultRetryer because the PUTs for segments/playlists are always idempotent

type GCPUploader

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

type S3Uploader

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

type Uploader

type Uploader interface {
	Upload(string, string, types.OutputType, bool, string) (string, int64, error)
}

func New

func New(conf config.UploadConfig, backup string, monitor *stats.HandlerMonitor) (Uploader, error)

Jump to

Keyboard shortcuts

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