Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { ID ulid.ULID `json:"_id"` Collection string `json:"collection"` Data map[string]interface{} `json:"data"` }
Document is a document that can be stored in a database.
func FromStorage ¶
FromStorage returns a document from a byte slice that was stored in a database, if an encryption key is provided, the document will be decrypted.
func (*Document) SetCollection ¶
SetCollection sets the collection of the document.
Click to show internal directories.
Click to hide internal directories.