gen_server behaviour.
Copyright © 2011 Hunter Morris
Behaviours: gen_server.
gen_server behaviour.
| available/1 | Asynchronously check if Pid in #state:requests queue or not. |
| gen_salt/0 | Generate a random text salt. |
| gen_salt/1 | Generate a random text salt. |
| hashpw/2 | Hash the specified password and the salt. |
| is_worker_available/0 | Is at least one bcrypt worker currently available for work?. |
| start_link/0 | Creates a gen_server process as part of a supervision tree. |
available(Pid) -> Result
Asynchronously check if Pid in #state:requests queue or not.
gen_salt() -> Result
Generate a random text salt.
Generate a random text salt. Rounds defines the complexity of the hashing, increasing the cost as 2^log_rounds.
hashpw(Password, Salt) -> any()
Hash the specified password and the salt.
is_worker_available() -> Result
Is at least one bcrypt worker currently available for work?
start_link() -> Result
Creates a gen_server process as part of a supervision tree.
Generated by EDoc