botlead v0.1.7 Botlead.Client.Supervisor
Supervisor to keep track of the initialized client sessions.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Callback invoked to start the supervisor and during hot code upgrades
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
init(opts)
init(opts)
init(Keyword.t()) :: {:ok, DynamicSupervisor.sup_flags()}
init(Keyword.t()) :: {:ok, DynamicSupervisor.sup_flags()}
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke DynamicSupervisor.init/1
at the end of
their init callback to return the proper supervision flags.
Callback implementation for DynamicSupervisor.init/1
.
Link to this function
remove_client(bot_server, pid, chat_id)
Link to this function
start_client(client_module, bot_server, chat_id, opts \\ [])
Link to this function