uploader_r2

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_RETRY_TIMES = 5
	DEFAULT_THREAD      = 5
)

Variables

This section is empty.

Functions

func Upload_r2

func Upload_r2(originDir string, thread int, bucketName string, additional_path string,
	accountId string, accessKeyId string, accessKeySecret string, retryTimes int) error

Types

type UploaderWorker

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

func (*UploaderWorker) UploadFile

func (u *UploaderWorker) UploadFile(localFilePath string) error

Jump to

Keyboard shortcuts

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