Botlead.Client.Supervisor (botlead v0.3.1)

Supervisor to keep track of the initialized client sessions.

Summary

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(opts)

@spec init(Keyword.t()) :: {:ok, DynamicSupervisor.sup_flags()}

Callback implementation for DynamicSupervisor.init/1.

remove_client(bot_server, pid, chat_id)

@spec remove_client(atom() | pid(), atom() | pid(), String.t()) :: :ok | :error

start_client(client_module, bot_server, chat_id, opts \\ [])

@spec start_client(module(), atom() | pid(), String.t(), Keyword.t()) ::
  {:ok, pid()} | :error

start_link(opts)

@spec start_link(Keyword.t()) :: {:ok, pid()}