transfer

package
v1.0.80 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ChunkSize = 64 * 1024

Variables

This section is empty.

Functions

func AppendChunk

func AppendChunk(transferID string, chunk []byte) (int64, error)

func DiscardStaging

func DiscardStaging(transferID string) error

func FinalizePath

func FinalizePath(transferID string) string

func StagedOffset

func StagedOffset(transferID string) (int64, error)

func StagingPath

func StagingPath(transferID string) string

StagingPath maps a transfer id to a single flat file inside the temp dir. All path separators and unsafe characters are stripped so a transfer id can never escape the staging directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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