View Source OpenFeature.Types (OpenFeature v0.1.1)

OpenFeature types.

Summary

Types

Link to this type

context()

View Source (since 0.1.0)
@type context() :: %{optional(binary()) => any()}
Link to this type

domain()

View Source (since 0.1.0)
@type domain() :: binary()
Link to this type

error_code()

View Source (since 0.1.0)
@type error_code() ::
  :provider_not_ready
  | :flag_not_found
  | :parse_error
  | :type_mismatch
  | :targeting_key_missing
  | :invalid_context
  | :provider_fatal
  | :general
Link to this type

event_details()

View Source (since 0.1.0)
@type event_details() :: %{
  :provider => binary(),
  optional(:domain) => binary(),
  optional(binary() | atom()) => any()
}
Link to this type

event_handler()

View Source (since 0.1.0)
@type event_handler() :: (event_details() -> any())
Link to this type

event_type()

View Source (since 0.1.0)
@type event_type() :: :ready | :error | :configuration_changed | :stale
Link to this type

flag_metadata()

View Source (since 0.1.0)
@type flag_metadata() :: %{required(binary()) => boolean() | binary() | number()}
Link to this type

flag_type()

View Source (since 0.1.0)
@type flag_type() :: :boolean | :string | :number | :map
Link to this type

flag_value()

View Source (since 0.1.0)
@type flag_value() :: boolean() | binary() | number() | map()
Link to this type

provider_status()

View Source (since 0.1.0)
@type provider_status() :: :not_ready | :ready | :stale
Link to this type

reason()

View Source (since 0.1.0)
@type reason() ::
  :static
  | :default
  | :targeting_match
  | :split
  | :cached
  | :disabled
  | :unknown
  | :stale
  | :error