Clover v0.1.0 Clover.Adapter behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function connected(robot_name, state) View Source
Link to this function incoming(robot_name, message, context) View Source
Link to this function send(robot_name, message) View Source
Link to this function start_link(mod, arg, opts) View Source

Link to this section Callbacks

Link to this callback handle_in({}, state, context) View Source (optional)
handle_in(
  {tag :: atom(), message :: Clover.Message.t()},
  state :: state(),
  context :: map()
) :: {:message, Clover.Message.t(), state()}
Link to this callback handle_out({}, state) View Source (optional)
handle_out({tag :: atom(), message :: Clover.Message.t()}, state :: state()) ::
  {:sent, Clover.Message.t(), state()}