method

App.DocumentLock

Read one document lock after read authorization.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
documentIDstringThe documentID value.
identity*AuthIdentityThe identity value.

Returns

The declared result.

(DocumentLockState, error)

Full signature

func (application *App) DocumentLock( ctx context.Context, collection, documentID string, identity *AuthIdentity, ) (DocumentLockState, error)

Source core/locks.go:22

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.

  • DocumentLockState

    Safe current lock metadata and actor capabilities.