Documentation
¶
Overview ¶
Package attachmentclient keeps file bytes outside model-facing messages.
Index ¶
Constants ¶
View Source
const MaxFileBytes int64 = 100 << 20
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported")
Functions ¶
func Receive ¶
func Receive(ctx context.Context, cache, key string, ref protocol.Attachment, fetch Fetch) *protocol.Attachment
Receive resolves transient downloads before exposing a sequence to ACK state.
func SanitizeName ¶
Types ¶
type Source ¶
func OpenSource ¶
OpenSource anchors every traversal step to the preceding directory handle.
Click to show internal directories.
Click to hide internal directories.