View Source LiveNavigator.Storage behaviour (live_navigator v0.1.8)
LiveNavigator storage behaviour
Link to this section Summary
Link to this section Types
@type cleanup_key() :: {LiveNavigator.session_id(), LiveNavigator.tab()}
Link to this section Callbacks
@callback cleanup([cleanup_key()]) :: :ok
@callback select(LiveNavigator) :: [LiveNavigator.t()]
@callback select(LiveNavigator.Page) :: [LiveNavigator.Page.t()]
@callback touch(LiveNavigator | LiveNavigator.Page, list()) :: :ok
@callback update([LiveNavigator.t() | LiveNavigator.Page.t()]) :: :ok
Link to this section Functions
@spec cleanup([cleanup_key()]) :: :ok
@spec select(LiveNavigator) :: [LiveNavigator.t()]
@spec select(LiveNavigator.Page) :: [LiveNavigator.Page.t()]
@spec touch(LiveNavigator | LiveNavigator.Page, list()) :: :ok
@spec update([LiveNavigator.t() | LiveNavigator.Page.t()]) :: :ok