type
DocumentLockState
type DocumentLockState struct {
Lock *store.DocumentLock
Owned bool
Acquired bool
CanTakeOver bool
}Safe current lock metadata and actor capabilities.
Lock*store.DocumentLock- Current safe lock metadata, or nil when the document is unlocked.
Ownedbool- The current identity owns Lock.
Acquiredbool- This request acquired or refreshed the lock.
CanTakeOverbool- The current identity may explicitly replace another author’s lock.
Lock state coordinates editors but does not replace collection access or optimistic revision checks.