openfeature/providers/in_memory

Types

pub type Flag {
  Flag(
    default_variant: String,
    variants: Variants,
    context_evaluator: Option(
      fn(EvaluationContext) -> ResolutionDetails(dynamic.Dynamic),
    ),
  )
}

Constructors

  • Flag(
      default_variant: String,
      variants: Variants,
      context_evaluator: Option(
        fn(EvaluationContext) -> ResolutionDetails(dynamic.Dynamic),
      ),
    )
pub type Variants =
  Dict(String, dynamic.Dynamic)

Functions

pub fn new_variants(
  variants: List(#(String, a)),
) -> Dict(String, Dynamic)
pub fn provider(from: Dict(String, Flag)) -> FeatureProvider
Search Document