chroxy v0.7.0 Chroxy.ProxyRouter

Maps connection metadata (such as page_id in case of Chrome) in order to route incoming request to the correct browser process. Will monitor browser processes and automatically remove regsitrations if a browser process dies during the course of operation.

Link to this section Summary

Functions

Child specification for supervision.

Returns a specification to start this module under a supervisor.

Delete entry with key and demonitor.

Get browser process registered with key

Store browser process against key and monitor

Start new ProxyRouter registered with name Elixir.Chroxy.ProxyRouter

Link to this section Types

Link to this type

key()
key() :: String.t()

Link to this section Functions

Link to this function

child_spec()
child_spec() :: Supervisor.child_spec()

Child specification for supervision.

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

delete(key)
delete(key()) :: :ok

Delete entry with key and demonitor.

Link to this function

get(key)
get(key()) :: pid()

Get browser process registered with key

Link to this function

put(key, proc)
put(key(), pid()) :: :ok

Store browser process against key and monitor

Start new ProxyRouter registered with name Elixir.Chroxy.ProxyRouter