Crosswake.Offline.Status (crosswake v0.1.0)

View Source

Stable route-local offline vocabulary for Crosswake support surfaces.

Summary

Types

state()

@type state() ::
  :cached_read_only
  | :stale
  | :saved_locally
  | :queued_for_replay
  | :replay_failed
  | :conflict_requires_attention

t()

@type t() :: %Crosswake.Offline.Status{
  details: map(),
  hint: String.t() | nil,
  state: state()
}

Functions

new(state, attrs \\ [])

@spec new(
  state(),
  keyword()
) :: t()

states()

@spec states() :: [state()]

to_map(status)

@spec to_map(t()) :: map()