package env_config

  1. Overview
  2. Docs
type t
val default : unit -> t Async.Deferred.t

Compute the default configuration

val t_of_sexp : Sexplib0.Sexp.t -> t
val environment_variable : string

The environment variable used to retrieve configuration overrides

val documentation : string

What to display when the environment variable is malformed, in addition to some helpful information

val allow_extra_fields : bool

Allow extra fields to be present in the configuration sexp deserializer. Most users will want this to be true, as it is unlikely the configuration will always be the same type, and most types are not versioned.

module Environment_override : sig ... end

A mechanism for instructing a different configuration than the default be loaded by providing a different environment value than a t.

val from_override : default_config:t Core.Or_error.t -> Environment_override.t -> t

The environment requested that the config be determined by Environment_override. The default is provided to this function.

OCaml

Innovation. Community. Security.