View Source ExWal.Store behaviour (ex_wal v0.2.1)

storage behavior

Summary

Types

Callbacks

Link to this callback

append(t, handler, binary)

View Source
@callback append(t(), ExWal.Typespecs.handler(), binary()) :: :ok | {:error, term()}
@callback close(t(), ExWal.Typespecs.handler()) :: :ok | {:error, term()}
@callback dir?(t(), path()) :: boolean()
@callback mkdir(t(), path(), ExWal.Typespecs.opts()) :: :ok
@callback open(t(), path(), ExWal.Typespecs.opts()) ::
  {:ok, ExWal.Typespecs.handler()} | {:error, term()}
@callback read_all(t(), path()) :: {:ok, binary()} | {:error, term()}
@callback rename(t(), path(), path()) :: :ok | {:error, term()}
@callback rm(t(), path()) :: :ok | {:error, term()}
@callback sync(t(), ExWal.Typespecs.handler()) :: :ok | {:error, term()}
@callback wildcard(t(), path()) :: [path()]
Link to this callback

write_all(t, path, binary)

View Source
@callback write_all(t(), path(), binary()) :: :ok | {:error, term()}

Functions