simple_rpc v0.0.1 SimpleRpc.Handler behaviour View Source

Behaviour to implement the server.

Link to this section Summary

Callbacks

Handles SimpleRpc commmand and params.

Link to this section Functions

Link to this function

handle_unknown_message()

View Source

Link to this section Callbacks

Link to this callback

handle_message(command, params)

View Source

Specs

handle_message(command :: SimpleRpc.command(), params :: SimpleRpc.params()) ::
  {:ok, SimpleRpc.result()} | {:error, SimpleRpc.error()}

Handles SimpleRpc commmand and params.