Bolt.Sips v2.0.11 Bolt.Sips.ConnectionSupervisor View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

the resulting connection name i.e. "write@localhost:7687" will be used to spawn new DBConnection processes, and for finding available connections

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

find_connection(name)

View Source
find_connection(any()) :: {:error, :not_found} | {:ok, pid()}
Link to this function

find_connection(role, url, prefix)

View Source
find_connection(atom(), String.t(), atom()) ::
  {:error, :not_found} | {:ok, pid()}
Link to this function

start_child(role, url, config)

View Source

the resulting connection name i.e. "write@localhost:7687" will be used to spawn new DBConnection processes, and for finding available connections

Link to this function

terminate_connection(role, url, prefix \\ :default)

View Source
terminate_connection(atom(), String.t(), atom()) ::
  {:error, :not_found} | {:ok, pid()}