amnesia v0.2.2 Amnesia.Event
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
activity :: {:complete, Amnesia.Access.id}
system ::
{:mnesia_up, node} |
{:mnesia_down, node} |
{:mnesia_checkpoint_activated, any} |
{:mnesia_overload, any} |
{:inconsistent_database, any} |
{:mnesia_fatal, char_list, [any], binary} |
{:mnesia_info, char_list, [any]} |
{:mnesia_user, any}
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.
Specs
subscribe(category) :: none
Subscribe to events of a given category, see mnesia:subscribe
.
Specs
unsubscribe(category) :: none
Unsubscribe from events of a given category, see mnesia:unsubscribe
.