Packages
ConfigCat SDK for Elixir. Feature Flags created by developers for developers with ❤️. ConfigCat lets you manage feature flags across frontend, backend, mobile, and desktop apps without (re)deploying code. % rollouts, user targeting, segmentation. Feature toggle SDKs for all main languages.
Current section
Files
Jump to
Current section
Files
lib/config_cat/config/segment.ex
defmodule ConfigCat.Config.Segment do
@moduledoc false
alias ConfigCat.Config.UserCondition
@type t :: %{String.t() => term()}
@conditions "r"
@name "n"
@spec conditions(t()) :: [UserCondition.t()]
def conditions(segment) do
Map.get(segment, @conditions, [])
end
@spec name(t()) :: String.t()
def name(segment) do
Map.get(segment, @name, "")
end
end