engine

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckpointPath

func CheckpointPath(sourcePath, guid string) (string, error)

CheckpointPath returns the on-disk path for an upload checkpoint.

func OptimalChunkSize

func OptimalChunkSize(fileSize int64) int64

OptimalChunkSize returns a recommended chunk size for the given file size.

Types

type GenericDownloader

type GenericDownloader struct {
	Source        transfer.ReadBackend
	RetryStrategy transfer.RetryStrategy
}

func (*GenericDownloader) Download

func (d *GenericDownloader) Download(ctx context.Context, guid string, dstPath string, concurrency int, chunkSize, multipartThreshold int64) error

type GenericUploader

type GenericUploader struct {
	Backend transfer.MultipartBackend
}

func (*GenericUploader) Upload

func (u *GenericUploader) Upload(ctx context.Context, req transfer.TransferRequest, showProgress bool) error

Jump to

Keyboard shortcuts

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