method

Store.FindDocumentLock

func (backend *Store) FindDocumentLock( ctx context.Context, collectionID schema.StableID, documentID string, now time.Time, ) (store.DocumentLock, error)

Public method Store.FindDocumentLock from github.com/riducms/ridu/adapters/mongodb.

Source adapters/mongodb/locks.go:18

@param ctx
The ctx value.
@param collectionID
The collectionID value.
@param documentID
The documentID value.
@param now
The now value.
@returns
The declared result.

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • StableID

    A deterministic identifier for schema evolution.

  • DocumentLock

    One expiring exclusive authoring lease.