Chronicle.Config (chronicle v0.1.0)

Copy Markdown

Resolves named audit stores.

Summary

Functions

Returns the store named by call options, falling back to the default store.

Functions

default_store()

@spec default_store() :: atom()

fetch_store(name \\ nil)

@spec fetch_store(atom() | nil) :: {:ok, Chronicle.Store.t()} | {:error, term()}

provider(call_opts)

@spec provider(keyword()) ::
  {:ok, module(), keyword(), atom() | nil} | {:error, term()}

store_name(opts)

@spec store_name(keyword()) :: atom()

Returns the store named by call options, falling back to the default store.

store_names()

@spec store_names() :: [atom()]