Adapter (Adapter v1.0.0-rc0) View Source
Documentation for Adapter
.
Link to this section Summary
Functions
Define the adapter behaviour through callbacks.
A @doc
tag can be set for each @callback
.
Link to this section Types
Link to this section Functions
Specs
See Adapter.behaviour/1
.
Specs
Define the adapter behaviour through callbacks.
A @doc
tag can be set for each @callback
.
Each callback is useable
Example
behaviour do
@doc ~S\"""
Get session from storage.
\"""
@callback get(token :: binary) :: {:ok, Session.t | nil} | {:error, atom}
end