simple_rpc v0.0.1 SimpleRpc.Http.Client behaviour View Source

Behaviour to call SimpleRpc over HTTP.

Link to this section Summary

Link to this section Types

Specs

context() :: any()

Specs

options() :: keyword()

Link to this section Callbacks

Link to this callback

call(context, command, params, options)

View Source

Specs

call(
  context(),
  command :: SimpleRpc.command(),
  params :: SimpleRpc.params(),
  options()
) ::
  {:ok, SimpleRpc.result()}
  | {:error, [SimpleRpc.error()] | {:invalid_response, term()} | term()}