Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data TeamFeatureStore m a where Source #
GetDbFeature :: FeatureSingleton cfg -> TeamId -> TeamFeatureStore m (DbFeature cfg) | Returns all stored feature values excluding lock status. |
GetDbFeatureMulti :: FeatureSingleton cfg -> [TeamId] -> TeamFeatureStore m [(TeamId, DbFeature cfg)] | |
SetDbFeature :: FeatureSingleton cfg -> TeamId -> LockableFeature cfg -> TeamFeatureStore m () | |
SetFeatureLockStatus :: FeatureSingleton cfg -> TeamId -> LockStatus -> TeamFeatureStore m () | |
GetAllDbFeatures :: TeamId -> TeamFeatureStore m (AllFeatures DbFeature) |
getDbFeature :: (Member TeamFeatureStore r, IsFeatureConfig cfg) => TeamId -> Sem r (DbFeature cfg) Source #
getDbFeatureMulti :: (Member TeamFeatureStore r, IsFeatureConfig cfg) => [TeamId] -> Sem r [(TeamId, DbFeature cfg)] Source #
setDbFeature :: (Member TeamFeatureStore r, IsFeatureConfig cfg) => TeamId -> LockableFeature cfg -> Sem r () Source #
setFeatureLockStatus :: forall cfg r. (Member TeamFeatureStore r, IsFeatureConfig cfg) => TeamId -> LockStatus -> Sem r () Source #
getAllDbFeatures :: Member TeamFeatureStore r => TeamId -> Sem r (AllFeatures DbFeature) Source #