expected v0.1.1 API Reference
Modules
A module for login and session management
A module to automate old logins cleaning
A struct defining login information
Stores login data in-memory
GenServer for maintaining the state in Expected.MemoryStore
Stores login data in a Mnesia table
Helpers for creating the Mnesia table
Login record for the Mnesia store
A struct for representing a not-loaded user field
Plugs for registering logins and authenticating persistent cookies
Specification for login stores
A module for testing Expected.Store
implementations
Exceptions
Error raised when the configuration is invalid or incomplete
Error raised by Expected.Plugs.register_login/2
if there is no currently
logged-in user
Error raised by Expected.Plugs.register_login/2
if the current_user
does
not contain a valid user
Error raised by the :mnesia
store when there is a problem
Error raised by Expected.MnesiaStore.Helpers.setup!/0
if a table already
exists and has different attributes
Error raised by Expected.Plugs
functions if Expected
has not been plugged
Mix Tasks
Clears all logins from the Mnesia table
Drops the Expected Mnesia table
Creates the Mnesia table for Expected