watchtower v0.1.0 Watchtower.Beacon behaviour View Source

A beacon to be watched by the watchman

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

Specs

Specs

Specs

interval() ::
  :never
  | {pos_integer(), :millisecond}
  | {pos_integer(), :milliseconds}
  | {pos_integer(), :second}
  | {pos_integer(), :seconds}
  | {pos_integer(), :minute}
  | {pos_integer(), :minutes}
  | {pos_integer(), :hour}
  | {pos_integer(), :hours}
  | {pos_integer(), :day}
  | {pos_integer(), :days}
  | {pos_integer(), :week}
  | {pos_integer(), :weeks}

Specs

severity() :: :none | atom()

Specs

status() :: :init | atom()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_continue(atom, state)

View Source

Callback implementation for GenServer.handle_continue/2.

Callback implementation for GenServer.init/1.

Link to this function

set_config(module, config)

View Source

Link to this section Callbacks

Link to this callback

beacon_config()

View Source (optional)

Specs

beacon_config() :: config()
Link to this callback

beacon_signal(condition)

View Source

Specs

beacon_signal(condition()) :: status() | {status(), config()}