type
DocumentLockState
Safe current lock metadata and actor capabilities.
Properties
| Property | Type | Description |
|---|---|---|
Lock | *store.DocumentLock | Current safe lock metadata, or nil when the document is unlocked. |
Owned | bool | The current identity owns Lock. |
Acquired | bool | This request acquired or refreshed the lock. |
CanTakeOver | bool | The 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
}