riverside v1.2.5 Riverside.Config
Helper for config data
Link to this section Summary
Functions
Ensure passed module is compiled already. Or else, this function raise an error
Get runtime port number from configuration
Load handler's configuration
Pick the TransmissionLimitter's parameters from Handlers configuration
Link to this section Types
Link to this type
port_type()
port_type()
port_type() :: pos_integer() | {atom(), String.t(), pos_integer()}
port_type() :: pos_integer() | {atom(), String.t(), pos_integer()}
Link to this section Functions
Link to this function
ensure_module_loaded(module)
ensure_module_loaded(module)
ensure_module_loaded(module()) :: :ok
ensure_module_loaded(module()) :: :ok
Ensure passed module is compiled already. Or else, this function raise an error.
Link to this function
get_port(port)
get_port(port)
get_port(port_type()) :: pos_integer()
get_port(port_type()) :: pos_integer()
Get runtime port number from configuration
Link to this function
load(handler, opts)
Load handler's configuration.
Link to this function
transmission_limit(config)
Pick the TransmissionLimitter's parameters from Handlers configuration.