Package

kadai

config

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

    Permalink
    Definition Classes
    ConfigReaderTypes
  2. trait ConfigReaderInstances extends AnyRef

    Permalink

    Sugar for creating ConfigReaders

  3. trait ConfigReaderTypes extends AnyRef

    Permalink
  4. type ConfigResult[A] = EitherT[ConfigReader, Invalid, A]

    Permalink
    Definition Classes
    ConfigTypes
  5. trait ConfigTypes extends AnyRef

    Permalink
  6. trait Configurable[A] extends AnyRef

    Permalink

    Generally used for companion objects that can provide configured implementations

  7. class Configuration extends Serializable

    Permalink
  8. trait ConfigurationInstances extends AnyRef

    Permalink

    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]

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

    Permalink

    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

    Permalink
    Definition Classes
    ConfigReaderTypes
  2. object ConfigResult extends Serializable

    Permalink
    Definition Classes
    ConfigTypes
  3. object ConfigTypes extends ConfigTypes

    Permalink
  4. object Configuration extends ConfigurationInstances with Serializable

    Permalink
  5. object Module extends Serializable

    Permalink

Inherited from ConfigReaderTypes

Inherited from ConfigTypes

Inherited from AnyRef

Inherited from Any

Ungrouped