logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

getting.ex (516B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Config.Getting do
  5. @callback get(any()) :: any()
  6. @callback get(any(), any()) :: any()
  7. @callback get!(any()) :: any()
  8. def get(key), do: get(key, nil)
  9. def get(key, default), do: impl().get(key, default)
  10. def get!(key), do: impl().get!(key)
  11. def impl do
  12. Application.get_env(:pleroma, :config_impl, Pleroma.Config)
  13. end
  14. end