astarte_rpc v1.0.0-alpha.1 Astarte.RPC.Handler behaviour View Source

This module defines the Astarte RPC Handler behaviour.

This must be implemented by modules that will be called from RPC Server.

Link to this section Summary

Link to this section Callbacks

Specs

handle_rpc(payload :: binary()) ::
  :ok | {:ok, reply :: term()} | {:error, :retry} | {:error, reason :: term()}