Modbux.Model.Shared (Modbux v0.3.10) View Source

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

Link to this section Summary

Link to this section Functions

Specs

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

start_link(params, opts \\ [])

View Source

Specs

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()}

Specs

state(atom() | pid() | {atom(), any()} | {:via, atom(), any()}) :: any()

Specs

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