Documentation
¶
Overview ¶
Package upload provides the shared chunked archive upload flow.
Index ¶
Constants ¶
View Source
const ChunkSize int64 = 5 * 1024 * 1024
View Source
const DefaultMaxSize int64 = 4 << 30 // 4 GiB
DefaultMaxSize bounds an upload session created against DefaultStore. It matches the backup feature's own archive size limit, but the two are independent constants: this package has no business awareness of backup.
Variables ¶
View Source
var DefaultStore = &Store{ Root: filepath.Join(".", "data", ".uploading"), MaxSize: DefaultMaxSize, }
View Source
var ErrNotFound = errors.New("upload not found")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.