View Source ExWal.Manager protocol (ex_wal v0.3.0)

The manager protocol for the WAL.

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

@spec close(impl :: t()) :: :ok | {:error, reason :: any()}
@spec create(impl :: t(), log_num :: ExWal.Models.VirtualLog.log_num()) ::
  {:ok, ExWal.LogWriter.t()} | {:error, reason :: any()}
@spec list(impl :: t()) ::
  {:ok, [ExWal.Models.VirtualLog.t()]} | {:error, reason :: any()}
Link to this function

obsolete(impl, min_log_num, recycle?)

View Source
@spec obsolete(
  impl :: t(),
  min_log_num :: ExWal.Models.VirtualLog.log_num(),
  recycle? :: boolean()
) :: {:ok, [ExWal.Models.Deletable.t()]} | {:error, reason :: any()}