type

DocumentLockState

Safe current lock metadata and actor capabilities.

Properties

PropertyTypeDescription
Lock*store.DocumentLockCurrent safe lock metadata, or nil when the document is unlocked.
OwnedboolThe current identity owns Lock.
AcquiredboolThis request acquired or refreshed the lock.
CanTakeOverboolThe current identity may explicitly replace another author’s lock.

How it works

Lock state coordinates editors but does not replace collection access or optimistic revision checks.

Full signature

type DocumentLockState struct { Lock *store.DocumentLock Owned bool Acquired bool CanTakeOver bool }

Source core/locks.go:14