Documentation
¶
Index ¶
Constants ¶
const MaxAttachmentBytes = 8192
MaxAttachmentBytes bounds the compact JSON encoding of one untrusted hint.
Variables ¶
var ErrChanged = errors.New("the layout changed; read it again before saving")
var ErrInvalid = errors.New("invalid layout")
var ErrRequired = errors.New("read the layout first and send its ETag as If-Match")
Functions ¶
Types ¶
type Document ¶
type Document struct {
Layout *state.PaneLayoutJSON `json:"layout" jsonschema:"nullable"`
}
Document uses the existing codec's tree vocabulary. It deliberately contains no viewer identifier or cell geometry; auth selects the viewer.
type Store ¶
type Store interface {
Get(viewer, project string) (Document, string, error)
Put(viewer, project, match string, document Document) (Document, string, error)
}
Store is the presentation-neutral persistence seam for viewer preferences. FileStore serializes read/compare/write across processes with an OS lock.