BlogEngine.Audit (blog_engine v0.1.0)

Copy Markdown View Source

Composes append-only audit writes and post-commit event delivery.

Summary

Functions

Adds a prefix-safe audit insert and retained event to an Ecto Multi.

Delivers explicitly ordered committed events and returns the transaction result unchanged.

Types

builder()

@type builder() :: map() | :skip | (map() -> map() | :skip)

Functions

multi(multi, context, name, audit_input, event_input)

Adds a prefix-safe audit insert and retained event to an Ecto Multi.

notify(context, result, ordered_names)

@spec notify(BlogEngine.Context.t(), term(), [term()]) :: term()

Delivers explicitly ordered committed events and returns the transaction result unchanged.