View Source Navigator.Storage behaviour (navigator v0.1.0)

Navigator storage behaviour

Link to this section Summary

Link to this section Types

@type cleanup_key() :: {Navigator.session_id(), Navigator.tab()}

Link to this section Callbacks

@callback cleanup([cleanup_key()]) :: :ok
@callback select(Navigator) :: [Navigator.t()]
@callback select(Navigator.Page) :: [Navigator.Page.t()]
@callback touch(Navigator | Navigator.Page, list()) :: :ok
@callback update([Navigator.t() | Navigator.Page.t()]) :: :ok

Link to this section Functions

@spec cleanup([cleanup_key()]) :: :ok
@spec select(Navigator) :: [Navigator.t()]
@spec select(Navigator.Page) :: [Navigator.Page.t()]
@spec touch(Navigator | Navigator.Page, list()) :: :ok
@spec update([Navigator.t() | Navigator.Page.t()]) :: :ok