type

AfterCommitEffect

type AfterCommitEffect struct { // Operation identifies the committed operation. Operation Operation // CollectionID identifies the affected collection. CollectionID schema.StableID // GlobalID identifies the affected global, when applicable. GlobalID schema.StableID // DocumentID identifies the affected document. DocumentID string // Run performs the post-commit side effect. Run func(context.Context) error }

Identity and executable work for one committed hook.

Source core/hook.go:46

@param Operation
The committed operation.
@param CollectionID
Affected collection identity.
@param GlobalID
Affected global identity, when applicable.
@param DocumentID
Affected document ID.
@param Run
Execute the original after-commit hook.

Related types

  • Operation

    The operation being authorized and dispatched.

  • StableID

    A deterministic identifier for schema evolution.