EnvironmentVariableFeatureFlagDataStore

A FeatureFlagDataStore implementation that provides values from environment variables.

Constructors

Link copied to clipboard
constructor(strictlyTyped: Boolean = true)

Create an EnvironmentVariableFeatureFlagDataStore which reads from the environment. If strictlyTyped is true, this store will throw exceptions when the raw string value of the environment variable cannot be coerced to a specific type. Otherwise, this store will return the default value.

Functions

Link copied to clipboard
open override fun getBoolean(key: String, default: Boolean): Boolean
Link copied to clipboard
open override fun getDouble(key: String, default: Double): Double
Link copied to clipboard
open override fun getLong(key: String, default: Long): Long
Link copied to clipboard
open override fun getString(key: String, default: String): String