View Source ExWal.LogReader.Virtual (ex_wal v0.3.0)

A virtual log consists of a set of segments. Each segment is a physical WAL file.

Summary

Types

@type t() :: %ExWal.LogReader.Virtual{
  name: Agent.name(),
  reader: ExWal.LogReader.t(),
  registry: atom(),
  virtual_log: ExWal.Models.VirtualLog.t()
}

Functions

Link to this function

init(name, registry, vlog)

View Source
@spec next(Agent.name()) :: {:ok, binary()} | :eof | {:error, reason :: term()}
@spec recovery(Agent.name()) :: :ok
@spec start_link(
  {name :: Agent.name(), registry :: atom(),
   vlog :: ExWal.Models.VirtualLog.t()}
) ::
  Agent.on_start()