knobs

package knobs

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. knobs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class BaseConfig(paths: IORef[List[(Name, KnobsResource)]], cfgMap: IORef[Env], subs: IORef[Map[Pattern, List[(Name, Option[CfgValue]) ⇒ Task[Unit]]]]) extends Product with Serializable

    Global configuration data.

  2. case class Bind(name: Name, value: CfgValue) extends Directive with Product with Serializable

  3. case class CfgBool(value: Boolean) extends CfgValue with Product with Serializable

  4. case class CfgDuration(value: Duration) extends CfgValue with Product with Serializable

  5. case class CfgList(value: List[CfgValue]) extends CfgValue with Product with Serializable

  6. case class CfgNumber(value: Double) extends CfgValue with Product with Serializable

  7. case class CfgText(value: String) extends CfgValue with Product with Serializable

  8. sealed trait CfgValue extends AnyRef

    A bound configuration value

  9. type ChangeHandler = (Name, Option[CfgValue]) ⇒ Task[Unit]

    A change handler takes the Name of the property that changed, the value of that property (or None if the property was removed), and produces a Task to perform in reaction to that change.

  10. case class Config(env: Env) extends Product with Serializable

    Immutable configuration data

  11. case class ConfigError[R](path: R, err: String)(implicit evidence$1: Resource[R]) extends Exception with Product with Serializable

    An error during parsing of a configuration file

  12. trait Configured[A] extends AnyRef

    The class of types that can be automatically and safely converted from a CfgValue to a destination type.

  13. sealed trait Directive extends AnyRef

    A directive in a configuration file

  14. type Env = Map[Name, CfgValue]

    A pure configuration environment map, detached from its sources

  15. case class Exact(name: Name) extends Pattern with Product with Serializable

    An exact match

  16. case class Group(name: Name, directives: List[Directive]) extends Directive with Product with Serializable

  17. sealed abstract class IORef[A] extends AnyRef

    An atomically updatable reference, guarded by the Task monad.

  18. case class Import(path: Path) extends Directive with Product with Serializable

  19. case class Interpolate(text: String) extends Interpolation with Product with Serializable

  20. sealed trait Interpolation extends AnyRef

  21. case class KeyError(name: String) extends Exception with Product with Serializable

  22. type KnobsResource = Worth[ResourceBox]

    exists r.

    exists r. Resource r ⇒ Required r | Optional r

  23. case class Literal(text: String) extends Interpolation with Product with Serializable

  24. case class MutableConfig(root: String, base: BaseConfig) extends Product with Serializable

    Mutable, reloadable, configuration data

  25. type Name = String

    The name of a configuration property

  26. case class Optional[A](worth: A) extends Worth[A] with Product with Serializable

  27. case class ParseException(msg: String) extends RuntimeException with Product with Serializable

    A small exception modeling class used by Config.parse if the parsing failed.

  28. type Path = String

    A path-like string

  29. sealed trait Pattern extends AnyRef

    A pattern that matches a Name either exactly or as a prefix.

  30. case class Prefix(name: Name) extends Pattern with Product with Serializable

    A prefix match.

  31. case class Required[A](worth: A) extends Worth[A] with Product with Serializable

  32. trait Resource[R] extends Show[R]

    Resources from which configuration files can be loaded

  33. sealed trait ResourceBox extends AnyRef

    An existential resource.

  34. sealed trait Trivial extends AnyRef

  35. sealed trait Valuable[V] extends AnyRef

  36. case class ValueError(name: String, value: CfgValue) extends Exception with Product with Serializable

  37. trait Watchable[R] extends Resource[R]

  38. sealed trait Worth[A] extends AnyRef

    A value that is either required or optional.

Value Members

  1. object ClassPathResource

  2. object Config extends Serializable

  3. object ConfigParser

  4. object Configured

  5. object FileResource

  6. object IORef

  7. object Pattern

  8. object Resource

  9. object ResourceBox

  10. object SysPropsResource

  11. object Trivial

  12. object URIResource

  13. object Valuable

  14. object Watched

  15. object Worth

  16. object aws

    Reads a set of configuration information from the running machine within the AWS environment.

  17. object compatibility

  18. def importsOf[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[KnobsResource]

    Get all the imports in the given list of directives, relative to the given path

  19. def load(files: List[KnobsResource], pool: ExecutorService = Resource.notificationPool): Task[MutableConfig]

    Create a MutableConfig from the contents of the given resources.

    Create a MutableConfig from the contents of the given resources. Throws an exception on error, such as if files do not exist or contain errors.

    File names have any environment variables expanded prior to the first time they are opened, so you can specify a file name such as "$(HOME)/myapp.cfg".

  20. def loadGroups(files: List[(Name, KnobsResource)], pool: ExecutorService = Resource.notificationPool): Task[MutableConfig]

    Create a MutableConfig from the contents of the named files, placing them into named prefixes.

  21. def loadImmutable(files: List[KnobsResource], pool: ExecutorService = Resource.notificationPool): Task[Config]

    Create an immutable Config from the contents of the named files.

    Create an immutable Config from the contents of the named files. Throws an exception on error, such as if files do not exist or contain errors.

    File names have any environment variables expanded prior to the first time they are opened, so you can specify a file name such as "$(HOME)/myapp.cfg".

  22. def recursiveImports[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): Task[List[R]]

    Get all the imports in the given list of directive, recursively resolving imports relative to the given path by loading them.

  23. def resolveImports[R](path: R, d: List[Directive])(implicit arg0: Resource[R]): List[R]

    Get all the imports in the given list of directives, relative to the given path

  24. def when[M[_]](b: Boolean)(m: M[Unit])(implicit arg0: Monad[M]): M[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped