RaftEx.Snapshot behaviour
(raft_ex v0.1.0)
View Source
Summary
Callbacks
@callback complete_accept(chunk :: term(), accept_state :: term()) :: :ok | {:ok, non_neg_integer()} | {:error, term()}
@callback context() :: map()
@callback get_size(location :: String.t()) :: {:ok, non_neg_integer()} | {:error, term()}
@callback prepare(index :: non_neg_integer(), state :: term()) :: ref :: term()