method

Store.FindDocumentLock

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionIDschema.StableIDThe collectionID value.
documentIDstringThe documentID value.
nowtime.TimeThe 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)

Source adapters/sqlite/support.go:79

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

  • StableID

    A deterministic identifier for schema evolution.

  • DocumentLock

    One expiring exclusive authoring lease.