method
App.DocumentLock
Read one document lock after read authorization.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
documentID | string | The documentID value. |
identity | *AuthIdentity | The identity value. |
Returns
The declared result.
(DocumentLockState, error)Full signature
func (application *App) DocumentLock(
ctx context.Context,
collection,
documentID string,
identity *AuthIdentity,
) (DocumentLockState, error)Related types
AppA resolved application bound to operation services.
AuthIdentityAn exact authenticated collection and actor document.
DocumentLockStateSafe current lock metadata and actor capabilities.