method

Store.AcquireDocumentLock

func (backend *Store) AcquireDocumentLock( ctx context.Context, candidate store.DocumentLock, now time.Time, takeover bool, ) (store.DocumentLock, bool, error)

Public method Store.AcquireDocumentLock from github.com/riducms/ridu/adapters/postgres.

Source adapters/postgres/locks.go:24

@param ctx
The ctx value.
@param candidate
The candidate value.
@param now
The now value.
@param takeover
The takeover value.
@returns
The declared result.

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.

  • DocumentLock

    One expiring exclusive authoring lease.