kadai

config

package config

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

Type Members

  1. type ConfigReader[+A] = Kleisli[FreeId, Configuration, A]

    Definition Classes
    ConfigReaderTypes
  2. trait ConfigReaderInstances extends AnyRef

    Sugar for creating ConfigReaders

  3. trait ConfigReaderTypes extends AnyRef

  4. trait Configurable[A] extends AnyRef

    Generally used for companion objects that can provide configured implementations

  5. class Configuration extends Serializable

  6. trait ConfigurationInstances extends AnyRef

    Simple user-friendly wrapper around Config.

    Simple user-friendly wrapper around Config.

    Provides a single type-safe apply method for getting values out from the configuration.

    Usage:

    val config = Configuration.load("filename.conf").get[Configuration]("objectName")
    val intThing = config[Int]("intPropertyName")
    val strThing = config[String]("stringPropertyName")

    Note that formatting or other problems will throw exceptions.

    You can also optionally find correct config items or validate and check their correctness (with Either):

    val intOption:Option[Int] = config.option[Int]("intPropertyName")
    val strThing: Either[Throwable, String] = config.valid[String]("stringPropertyName")

    The Accessor type-classes implement the glue to get the specific type configuration item.

    Details on the underlying configuration file specification can be found here: https://github.com/typesafehub/config/blob/master/HOCON.md

  7. type FreeId[+A] = Free[scalaz.Scalaz.Id, A]

    Definition Classes
    ConfigReaderTypes

Value Members

  1. object ConfigReader extends ConfigReaderInstances

    Definition Classes
    ConfigReaderTypes
  2. object Configuration extends ConfigurationInstances with Serializable

Inherited from ConfigReaderTypes

Inherited from AnyRef

Inherited from Any

Ungrouped