package catseffect
- Alphabetic
- By Inheritance
- catseffect
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
loadConfigF[F[_], A](implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the standard configuration filesLoad a configuration of type
Afrom the standard configuration files- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration files, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- def loadF[F[_], A](cs: ConfigSource)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
-
def
saveConfigAsPropertyFileF[F[_], A](conf: A, outputPath: Path, overrideOutputPath: Boolean = false, options: ConfigRenderOptions = ConfigRenderOptions.defaults())(implicit F: Sync[F], writer: Derivation[ConfigWriter[A]]): F[Unit]
Save the given configuration into a property file
Save the given configuration into a property file
- conf
The configuration to save
- outputPath
Where to write the configuration
- overrideOutputPath
Override the path if it already exists
- options
the config rendering options
- returns
The return action will save out the supplied configuration upon invocation
-
def
saveConfigToStreamF[F[_], A](conf: A, outputStream: OutputStream, options: ConfigRenderOptions = ConfigRenderOptions.defaults())(implicit F: Sync[F], writer: Derivation[ConfigWriter[A]]): F[Unit]
Writes the configuration to the output stream and closes the stream
Writes the configuration to the output stream and closes the stream
- conf
The configuration to write
- outputStream
The stream in which the configuration should be written
- options
the config rendering options
- returns
The return action will save out the supplied configuration upon invocation
Deprecated Value Members
-
val
defaultNameSpace: String
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Root will be treated as the default namespace
-
def
loadConfigF[F[_], A](conf: Config, namespace: String)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the givenConfigLoad a configuration of type
Afrom the givenConfig- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration object, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Use
ConfigSource.fromConfig(conf).at(namespace).loadF[F, A]instead
-
def
loadConfigF[F[_], A](conf: Config)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the givenConfigLoad a configuration of type
Afrom the givenConfig- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration object, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Use
ConfigSource.fromConfig(conf).loadF[F, A]instead
-
def
loadConfigF[F[_], A](path: Path, namespace: String)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the given file.Load a configuration of type
Afrom the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file- path
the path of the configuration file from which to load
- namespace
the base namespace from which the configuration should be load
- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration file, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Use
ConfigSource.default(ConfigSource.file(path)).at(namespace).loadF[F, A]instead
-
def
loadConfigF[F[_], A](path: Path)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the given file.Load a configuration of type
Afrom the given file. Note that standard configuration files are still loaded but can be overridden from the given configuration file- path
the path of the configuration file from which to load
- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration file, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Use
ConfigSource.default(ConfigSource.file(path)).loadF[F, A]instead
-
def
loadConfigF[F[_], A](namespace: String)(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Load a configuration of type
Afrom the standard configuration filesLoad a configuration of type
Afrom the standard configuration files- namespace
the base namespace from which the configuration should be load
- returns
The returned action will complete with
Aif it is possible to create an instance of typeAfrom the configuration files, or fail with a ConfigReaderException which in turn contains details on why it isn't possible
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Use
ConfigSource.default.at(namespace).loadF[F, A]instead
-
def
loadConfigFromFilesF[F[_], A](files: NonEmptyList[Path])(implicit F: Sync[F], reader: Derivation[ConfigReader[A]], ct: ClassTag[A]): F[A]
Loads
filesin order, allowing values in later files to backstop missing values from prior, and converts them into aA.Loads
filesin order, allowing values in later files to backstop missing values from prior, and converts them into aA.This is a convenience method which enables having default configuration which backstops local configuration.
Note: If an element of
filesreferences a file which doesn't exist or can't be read, it will silently be ignored.- files
Files ordered in decreasing priority containing part or all of a
A. Must not be empty.
- Annotations
- @deprecated
- Deprecated
(Since version 0.12.0) Construct a custom
ConfigSourcepipeline instead