Documentation
¶
Overview ¶
Package upload is the upload file: objects a client sends a store in one piece, each after the ones among them it references. A Writer writes one, a Reader reads it back, and Ingest stores what it holds.
Index ¶
Constants ¶
View Source
const MaxObject = 32 << 20
MaxObject is the largest object an upload file holds.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid upload file")
ErrInvalid is an upload file that can't be read.
Functions ¶
This section is empty.
Types ¶
type Ingested ¶
type Ingested struct {
Objects, Stored int64
}
Ingested is what Ingest did: the objects the file held, and how many of them the store didn't hold already.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads an upload file.
Click to show internal directories.
Click to hide internal directories.