View Source Flagsmith.Client.Poller (flagsmith_engine v0.1.0)

Link to this section Summary

Link to this section Types

Specs

environment_key() :: String.t()

Specs

identity_id() :: String.t() | non_neg_integer()

Specs

poller_identifier() :: {Flagsmith.Client.Poller, String.t()}

Link to this section Functions

Specs

get_environment(Flagsmith.Configuration.t()) ::
  {:ok, Flagsmith.Schemas.Environment.t()} | {:error, term()}
Link to this function

get_environment_flags(config)

View Source

Specs

get_environment_flags(Flagsmith.Configuration.t()) ::
  {:ok, map()} | {:error, term()}
Link to this function

get_identity_flags(config, identifier, traits)

View Source

Specs

get_identity_flags(Flagsmith.Configuration.t(), identity_id(), [map()] | map()) ::
  {:ok, Flagsmith.Schemas.Identity.t()} | {:error, term()}
Link to this function

interact(config, command \\ :get_environment)

View Source

Specs

interact(Flagsmith.Configuration.t(), command :: term()) ::
  {:ok, term()} | {:error, term()}

Specs

start_link(Flagsmith.Configuration.t()) :: {:ok, pid()}
Link to this function

statem_id(environment_key)

View Source

Specs

Link to this function

via_tuple(environment_key)

View Source

Specs

via_tuple(environment_key()) ::
  {:via, Registry, {Flagsmith.Registry, poller_identifier()}}
Link to this function

whereis(environment_key)

View Source

Specs

whereis(environment_key()) :: :undefined | pid()