Modbux v0.3.9 Modbux.Model.Shared View Source

An agent that holds the current state of the Server/Slave DB.

Link to this section Summary

Link to this section Functions

Link to this function

apply(pid, cmd)

View Source
apply(atom() | pid() | {atom(), any()} | {:via, atom(), any()}, any()) ::
  any()
Link to this function

start_link(params, opts \\ [])

View Source
start_link(any(),
  debug: [any()],
  hibernate_after: :infinity | non_neg_integer(),
  name: atom() | {any(), any()} | {any(), any(), any()},
  spawn_opt: :link | :monitor | {any(), any()},
  timeout: :infinity | non_neg_integer()
) :: {:error, any()} | {:ok, pid()}
Link to this function

state(pid)

View Source
state(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) :: any()
Link to this function

stop(pid)

View Source
stop(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) :: :ok