Lamina.Server.State (lamina v0.4.0)

Defines the state of the Lamina server process.

Link to this section Summary

Link to this section Types

Link to this type

provider_state()

Specs

provider_state() :: Lamina.Provider.state()

Specs

t() :: %Lamina.Server.State{
  config_keys: [atom()],
  gc_timeout: pos_integer(),
  module: atom(),
  provider_opts: keyword(),
  provider_order: [module()],
  provider_states: %{optional(module()) => provider_state()},
  providers_started: boolean(),
  table: Table.t(),
  ttl_refresh_fraction: float()
}

Link to this section Functions

Specs

init(keyword()) :: {:ok, t()} | {:error, any()}