FeatureFlagService

uk.gov.hmrc.mongoFeatureToggles.services.FeatureFlagService
@Singleton
class FeatureFlagService(appConfig: AppConfig, featureFlagRepository: FeatureFlagRepository, cache: AsyncCacheApi)(implicit ec: ExecutionContext) extends Logging

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def get(flagName: FeatureFlagName): Future[FeatureFlag]
def getAll: Future[List[FeatureFlag]]
def getAsEitherT[A](flagName: FeatureFlagName): EitherT[Future, A, FeatureFlag]
def set(flagName: FeatureFlagName, enabled: Boolean): Future[Boolean]
def setAll(flags: Map[FeatureFlagName, Boolean]): Future[Unit]

Concrete fields

val cacheValidFor: FiniteDuration

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging