Packages
openfeature_elixir
0.1.0
OpenFeature is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool.
Current section
Files
Jump to
Current section
Files
lib/provider.ex
defmodule OpenFeature.Provider do
# TODO: add child_spec stuff
# @callback child_spec() :: Supervisor.child_spec()
@callback get_boolean_value(
tag :: term,
name :: term,
default :: boolean(),
context :: %OpenFeature.Context{}
) :: boolean()
@callback get_string_value(
tag :: term,
name :: term,
default :: binary(),
context :: %OpenFeature.Context{}
) :: binary()
# @optional_callbacks child_spec: 0
end