Documentation
¶
Overview ¶
Package document is the durable-document port every layer shares, ai and bridge included; host re-exports it as host.Document for embedders.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document interface {
Read(context.Context) ([]byte, error)
Update(context.Context, func([]byte) ([]byte, error)) error
}
Document updates must commit before returning; nil deletes the document.
Click to show internal directories.
Click to hide internal directories.