Hub.ChannelRegistry (hub v1.0.1)

Keeps track of channel processes with channel names as keys.

Link to this section Summary

Functions

Looks up the given channel name

Registers the channel with the channel_name

Starts the registry

Link to this section Functions

Link to this function

child_spec(list)

Link to this function

lookup(channel_name)

Specs

lookup(String.t()) :: {:ok, pid()} | :not_found

Looks up the given channel name

Link to this function

register(channel_name)

Specs

register(String.t()) :: :ok | {:duplicate_key, pid()}

Registers the channel with the channel_name

Specs

start_link() :: {:ok, pid()} | {:error, reason :: any()}

Starts the registry