View Source erldns_events (erldns v4.2.0)

Public API for erldns event handler registration and notification.

Summary

Functions

Add an event handler.

Add an event handler with arguments.

Fire an event.

Start the event process.

Functions

add_handler(Module)

-spec add_handler(module()) -> any().

Add an event handler.

add_handler(Module, Args)

-spec add_handler(module(), [term()]) -> any().

Add an event handler with arguments.

notify(Event)

-spec notify(any()) -> any().

Fire an event.

start_link()

-spec start_link() -> any().

Start the event process.