keylex v0.1.0 Keylex.Dispatcher View Source
Keylex.Dispatcher implements the Supervisor behaviour. Dispatches messeges with generated access codes.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
create_passport/3 creates an access code and dispatches a worker process representing the access code and a messenger process to send the code
Callback invoked to start the supervisor and during hot code upgrades
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
create_passport/3 creates an access code and dispatches a worker process representing the access code and a messenger process to send the code.
Returns: {:ok, access_code} | {:error, error_message}
Example
Keylex.Dispatcher("5555555555", "4444444444", "Message")
{:ok, "thisistheaccesscode"}
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.