rondo_server v0.1.4 Rondo.Server behaviour

Summary

Functions

acceptor(handler, opts \\ %{})
authenticate(methods, timeout \\ :infinity)
call(name, data, timeout \\ 5000)
info(name, data)
reload()

Callbacks

authenticate(method, token, state)
authenticate(method :: term, token :: binary, state :: any) ::
  {:ok, data :: term} |
  {:error, error :: term}
format_error(type, error, stacktrace)
format_error(type :: atom, error :: term, stacktrace :: list) :: binary
init(opts)
init(opts :: any) ::
  {:ok, Rondo.State.Store.t, any} |
  {:error, reason :: term}
route(path, props, state)
route(path :: binary, props :: map, state :: any) ::
  {:ok, Rondo.Element.Mountable.t} |
  {:error, reason :: term}
setup(protocol_opts, protocol_info)
setup(protocol_opts :: map, protocol_info :: map) ::
  {:ok, any} |
  {:error, reason :: term}