type

Version

One retained version snapshot for a document.

Properties

PropertyTypeDescription
IDstringVersion record identity.
DocumentIDstringOwning document ID.
RevisionintRetained revision number.
StatusStatusDraft or published snapshot status.
SnapshotDocumentStored document snapshot.
CreatedAttime.TimeSnapshot creation time.

Full signature

type Version struct { ID string DocumentID string Revision int Status Status Snapshot Document CreatedAt time.Time }

Source store/store.go:225