Documentation
¶
Overview ¶
Package shareinbox stages iOS share-extension items in an App Group until the containing app next activates. Committed batches are atomic directories; unfinished imports are never visible to the reader.
Index ¶
Constants ¶
const Directory = "NSGoShares"
const MaxBytes int64 = 512 << 20
MaxBytes bounds one incoming batch without loading its files into memory.
const MaxTextBytes = maxManifest / 2
Variables ¶
var ErrTooLarge = errors.New("share exceeds the inbox's limits")
ErrTooLarge is what a batch over the inbox's limits fails with: more than 128 items, 512 MiB of files or a 1 MiB manifest, or text over MaxTextBytes.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader tracks batches handed to this engine, retaining their durable copies until an app callback acknowledges them. A new process reads unacknowledged batches again; waking an existing reader never duplicates a pending batch.