cartel v0.7.0 Cartel.Supervisor

Cartel supervisor for dealer processes

Summary

Functions

Adds a new Dealer to the supervision tree

Callback implementation for c:Supervisor.init/1

Removes a Dealer from the supervision tree

Starts the supervisor

Functions

add_dealer(appid, pushers)

Specs

add_dealer(String.t, %{}) :: Supervisor.on_start_child

Adds a new Dealer to the supervision tree.

  • appid: The app name
  • pushers: pushers as you specify in the static configuration
init()

Callback implementation for c:Supervisor.init/1.

remove_dealer(appid)

Specs

remove_dealer(String.t) :: :ok | {:error, :not_found}

Removes a Dealer from the supervision tree.

  • appid: The app name
start_link()

Specs

start_link :: Supervisor.on_start

Starts the supervisor