engine

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 14 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 {
	Backend transfer.Backend
}

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.Backend
}

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