locus_event_subscriber behaviour (locus v2.3.15)

Copy Markdown View Source

Callback for implementing your own locus_database event subscribers.

Summary

Types

event()

-type event() :: locus_database:event().

Callbacks

report(DatabaseId, Event)

-callback report(DatabaseId, Event) -> ok when DatabaseId :: atom(), Event :: event().

Functions

report(Module, DatabaseId, Event)

-spec report(Module, DatabaseId, Event) -> ok
                when Module :: module(), DatabaseId :: atom(), Event :: event().