Auctoritas v0.1.1 Auctoritas.AuthenticationManager.DataStorage behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

delete_token(token) View Source
delete_token(token()) :: {atom(), any()}

Link to this function

get_token_data(token) View Source
get_token_data(token()) :: {atom(), any()}

Link to this function

get_tokens(start, amount) View Source
get_tokens(non_neg_integer(), non_neg_integer()) :: {atom(), any()}

Link to this function

get_tokens_with_data(start, amount) View Source
get_tokens_with_data(non_neg_integer(), non_neg_integer()) :: {atom(), any()}

Link to this function

insert_data(token, data) View Source
insert_data(token(), any()) :: {atom(), any()}

Link to this function

token_exists?(token) View Source
token_exists?(token()) :: boolean()

Link to this function

token_expires?(token) View Source
token_expires?(token()) :: {atom(), any()}

Link to this section Callbacks

Link to this callback

delete_token(token) View Source
delete_token(token()) :: {atom(), any()}

Link to this callback

get_token_data(token) View Source
get_token_data(token()) :: {atom(), any()}

Link to this callback

get_tokens(non_neg_integer, non_neg_integer) View Source
get_tokens(non_neg_integer(), non_neg_integer()) :: {atom(), any()}

Link to this callback

get_tokens_with_data(non_neg_integer, non_neg_integer) View Source
get_tokens_with_data(non_neg_integer(), non_neg_integer()) :: {atom(), any()}

Link to this callback

insert_data(token, any) View Source
insert_data(token(), any()) :: {atom(), any()}

Link to this callback

token_exists?(token) View Source
token_exists?(token()) :: boolean()

Link to this callback

token_expires?(token) View Source
token_expires?(token()) :: {atom(), any()}