kadai

config

package config

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. config
  2. ConfigReaderTypes
  3. ConfigTypes
  4. AnyRef
  5. 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. type ConfigResult[A] = EitherT[ConfigReader, Invalid, A]

    Definition Classes
    ConfigTypes
  5. trait ConfigTypes extends AnyRef

  6. trait Configurable[A] extends AnyRef

    Generally used for companion objects that can provide configured implementations

  7. class Configuration extends Serializable

  8. 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

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

    Definition Classes
    ConfigReaderTypes
  10. final case class Module[A](get: A) extends Product with Serializable

    Used to extract scala object instances that implement some provider style interface.

    Used to extract scala object instances that implement some provider style interface.

    Use:

    config[Module[Foo]]("name").get

    where Foo is the trait that your object implements, and 'name' is config property that holds the name of the actual object

Value Members

  1. object ConfigReader extends ConfigReaderInstances with Serializable

    Definition Classes
    ConfigReaderTypes
  2. object ConfigResult extends Serializable

    Definition Classes
    ConfigTypes
  3. object ConfigTypes extends ConfigTypes

  4. object Configuration extends ConfigurationInstances with Serializable

  5. object Module extends Serializable

Inherited from ConfigReaderTypes

Inherited from ConfigTypes

Inherited from AnyRef

Inherited from Any

Ungrouped