LemonGateway. TransportRegistry
(lemon_gateway v0.1.0)
View Source
Registry of available transport modules.
Maintains a mapping of transport ID strings to their implementing modules. Tracks which transports are enabled via configuration and warns about misconfigured transports at startup.
Summary
Functions
Returns a specification to start this module under a supervisor.
Returns the transport module for the given ID, or nil if not registered.
Returns the transport module for the given ID, or raises if not found.
Returns a list of all registered transport IDs.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec enabled_transports() :: [{transport_id(), transport_mod()}]
@spec get_transport(transport_id()) :: transport_mod() | nil
Returns the transport module for the given ID, or nil if not registered.
@spec get_transport!(transport_id()) :: transport_mod()
Returns the transport module for the given ID, or raises if not found.
@spec list_transports() :: [transport_id()]
Returns a list of all registered transport IDs.