Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains details for external store implementations.
Synopsis
- type StoreResult a = IO (Either Text a)
- type FeatureKey = Text
- type FeatureNamespace = Text
- data StoreInterface = StoreInterface {
- storeInterfaceAllFeatures :: !(FeatureNamespace -> StoreResult (HashMap Text RawFeature))
- storeInterfaceGetFeature :: !(FeatureNamespace -> FeatureKey -> StoreResult RawFeature)
- storeInterfaceUpsertFeature :: !(FeatureNamespace -> FeatureKey -> RawFeature -> StoreResult Bool)
- storeInterfaceIsInitialized :: !(StoreResult Bool)
- storeInterfaceInitialize :: !(HashMap FeatureNamespace (HashMap FeatureKey RawFeature) -> StoreResult ())
- data RawFeature = RawFeature {}
Documentation
type StoreResult a = IO (Either Text a) Source #
The result type for every StoreInterface
function. Instead of throwing
an exception, any store related error should return Left
. Exceptions
unrelated to the store should not be caught.
type FeatureKey = Text Source #
Represents the key for a given feature.
type FeatureNamespace = Text Source #
Represents a namespace such as flags or segments
data StoreInterface Source #
The interface implemented by external stores for use by the SDK.
StoreInterface | |
|
data RawFeature Source #
An abstract representation of a store object.
RawFeature | |
|