uploader_r2

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenR2Client

func GenR2Client(accountId string, accessKeyId string, accessKeySecret string) (*s3.Client, error)

Types

type UploaderWorker

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

func NewUploadWorker

func NewUploadWorker(client *s3.Client, bucketName string, additional_path string,
	fileName string, localFileMd5 string, bar *mpb.Bar) *UploaderWorker

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