Amnesia.Event (nuamnesia v0.3.0)
This module implements helpers to handle mnesia events.
Summary
Functions
Observe the given events with the given function.
Report an event, see mnesia:report_event
.
Subscribe to events of a given category, see mnesia:subscribe
.
Unsubscribe from events of a given category, see mnesia:unsubscribe
.
Types
@type activity() :: {:complete, Amnesia.Access.id()}
@type table() :: {:write, tuple(), Amnesia.Access.id()} | {:delete_object, tuple(), Amnesia.Access.id()} | {:delete, {atom(), any()}, Amnesia.Access.id()} | {:write, atom(), tuple(), [tuple()], Amnesia.Access.id()} | {:delete, atom(), any(), [tuple()], Amnesia.Access.id()}
Functions
Observe the given events with the given function.
@spec report(any()) :: :ok
Report an event, see mnesia:report_event
.
Subscribe to events of a given category, see mnesia:subscribe
.
Unsubscribe from events of a given category, see mnesia:unsubscribe
.