type

DocumentLock

One expiring exclusive authoring lease.

Properties

PropertyTypeDescription
CollectionIDschema.StableIDThe CollectionID value.
DocumentIDstringThe DocumentID value.
OwnerCollectionIDschema.StableIDThe OwnerCollectionID value.
OwnerIDstringThe OwnerID value.
OwnerLabelstringThe OwnerLabel value.
CreatedAttime.TimeThe CreatedAt value.
UpdatedAttime.TimeThe UpdatedAt value.
ExpiresAttime.TimeThe ExpiresAt value.

Full signature

type DocumentLock struct { CollectionID schema.StableID DocumentID string OwnerCollectionID schema.StableID OwnerID string OwnerLabel string CreatedAt time.Time UpdatedAt time.Time ExpiresAt time.Time }

Source store/store.go:570