config

package config

Members list

Type members

Classlikes

case class AppConfig(kafka: KafkaConfig, http: HttpConfig, database: DatabaseConfig, preprocessorHttpClient: ChemistPreprocessorHttpClient, engineHttpClient: ChemistEngineHttpClient)

Represents the application-wide configuration.

Represents the application-wide configuration.

Value parameters

database

The database configuration.

engineHttpClient

The Chemist engine HTTP client configuration.

http

The HTTP server configuration.

kafka

The Kafka configuration.

preprocessorHttpClient

The Chemist preprocessor HTTP client configuration.

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object AppConfig

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
AppConfig.type
case class ChemistEngineHttpClient(baseUri: Uri, timeout: HttpClientTimeout, retries: Int, pool: HttpClientPool)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ChemistPreprocessorHttpClient(baseUri: Uri, timeout: HttpClientTimeout, retries: Int, pool: HttpClientPool)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ConfigLoader

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ConfigLoader

Provides a loader for application configuration.

Provides a loader for application configuration.

The configuration is loaded from application.conf and reference.conf files, with the former taking precedence. This object also sets up logging configurations.

Attributes

Companion
trait
Source
ConfigLoader.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class DatabaseConfig(url: String, user: String, password: String)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HttpClientPool(maxConnections: Int, maxIdleTime: FiniteDuration)

Attributes

Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HttpClientTimeout(connect: FiniteDuration, request: FiniteDuration)

Attributes

Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HttpConfig(host: Host, port: Port)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object HttpConfig

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpConfig.type
case class KafkaConfig(bootstrapServers: String, topic: KafkaTopics)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object KafkaConfig

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class KafkaTopics(reactions: String, mechanisms: String)

Attributes

Companion
object
Source
ConfigLoader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object KafkaTopics

Attributes

Companion
class
Source
ConfigLoader.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Provides a loader for test configuration.

Provides a loader for test configuration.

The configuration is loaded from application.spec.conf and reference.conf files, with the former taking precedence. This loader is used specifically for test environments.

Attributes

Source
ConfigLoader.scala
Supertypes
class Object
trait Matchable
class Any
Self type