View Source SmartToken.SchemaBehaviour behaviour (smart_token v0.1.2)

Summary

Callbacks

Link to this callback

lookup_smart_token(token_a, token_b, context, options)

View Source
@callback lookup_smart_token(
  token_a :: term(),
  token_b :: term(),
  context :: any(),
  options :: any()
) ::
  {:ok, term()} | {:error, term()}
Link to this callback

save_smart_token(term, context, options)

View Source
@callback save_smart_token(term :: any(), context :: any(), options :: any()) ::
  {:ok, term()} | {:error, term()}