p
knobs
package knobs
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- knobs
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
Value Members
- def load[F[_]](files: List[KnobsResource], pool: ExecutionContext)(implicit arg0: Effect[F]): F[MutableConfig[F]]
- def loadGroups[F[_]](files: List[(Name, KnobsResource)], pool: ExecutionContext)(implicit arg0: Effect[F]): F[MutableConfig[F]]
- def loadImmutable[F[_]](files: List[KnobsResource], pool: ExecutionContext)(implicit arg0: Effect[F]): F[Config]
- def recursiveImports[F[_], R](path: R, d: List[Directive])(implicit arg0: Sync[F], arg1: Resource[R]): F[List[R]]
-
object
Typesafe
Adapts a Typesafe Config to a Knobs Config.
Adapts a Typesafe Config to a Knobs Config.
Caution: Typesafe Config's grammar does not distinguish a duration type from other String values. This means that durations are not extracted in knobs in the same way as using the native Typesafe Config API:
scala> val ts = ConfigFactory.parseString(""" "dur" = 3 seconds """) ts: com.typesafe.config.Config = Config(SimpleConfigObject({"dur":"3 seconds"})) scala> ts.getDuration("dur", java.util.concurrent.TimeUnit.MILLISECONDS) res0: Long = 3000 scala> val k = knobs.Typesafe.config[IO](ts).unsafePerformSync k: knobs.Config = Config(Map(dur -> CfgText(3 seconds))) scala> k.lookup[Duration]("dur") res1: Option[scala.concurrent.duration.Duration] = None scala> k.lookup[String]("dur") res2: Option[String] = Some(3 seconds)
Deprecated Value Members
-
def
importsOf[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[KnobsResource]
- Annotations
- @deprecated
- Deprecated
(Since version 4.0.31) Does not support interpolation of environment variables
-
def
resolveImports[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[R]
- Annotations
- @deprecated
- Deprecated
(Since version 4.0.31) Does not support interpolation of environment variables