View Source Astarte.RPC.Handler behaviour (astarte_rpc v1.2.0)

This module defines the Astarte RPC Handler behaviour.

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

Summary

Callbacks

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