View Source Statestores.Adapters.SnapshotBehaviour behaviour (spawn_statestores v1.3.1)
Defines the default behavior for each Statestore Provider.
Summary
Types
@type id() :: String.t()
@type revision() :: integer()
@type snapshot() :: Statestores.Schemas.Snapshot.t()
@type snapshots() :: [Statestores.Schemas.Snapshot.t()]
@type time_end() :: String.t()
@type time_start() :: String.t()
Callbacks
@callback default_port() :: <<_::32>>
@callback get_snapshots_by_interval(id(), time_start(), time_end()) :: snapshots()