Elixir-native SafeRPC service DSL.
defmodule MyApp do
use SafeRPC, service: :my_app
@rpc true
@doc "Return service status."
@spec status(map(), map(), term()) :: {:ok, map()}
def status(_payload, _meta, state), do: {:ok, state}
endOnly functions marked with @rpc are exposed. Operation identity is the
Elixir module/function pair {Module, function}.