method
Store.FindDocumentLock
Public method Store.FindDocumentLock from github.com/riducms/ridu/adapters/postgres.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collectionID | schema.StableID | The collectionID value. |
documentID | string | The documentID value. |
now | time.Time | The now value. |
Returns
The declared result.
(store.DocumentLock, error)Full signature
func (backend *Store) FindDocumentLock(
ctx context.Context,
collectionID schema.StableID,
documentID string,
now time.Time,
) (store.DocumentLock, error)Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.
StableIDA deterministic identifier for schema evolution.
DocumentLockOne expiring exclusive authoring lease.