HConfig

harness.zio.HConfig$
See theHConfig companion class
object HConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HConfig.type

Members list

Type members

Classlikes

final case class KeyedConfig(key: String, config: Json)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object KeyedConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class KeyedConfigDecoder[A](key: String, decoder: JsonDecoder[A])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class LayerBuilder[R](make: HConfig => URIO[R, HConfig])

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object append.type
object prepend.type
object layer.type
object layer extends LayerBuilder[Any]

Attributes

Supertypes
class LayerBuilder[Any]
class Object
trait Matchable
class Any
Self type
layer.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def flatten(list: List[HConfig]): HConfig
def fromEnvVar(varName: String): IO[LoadError, HConfig]
def fromJarResource(path: String): IO[LoadError, HConfig]
def fromJson(json: Json): HConfig
def fromJsonString(json: String, target: ConfigTarget): IO[FailedToDecode, HConfig]
def fromPath(path: Path): IO[LoadError, HConfig]
def fromPathString(path: String): ZIO[FileSystem, LoadError, HConfig]
def fromPathStrings(paths: List[String]): ZIO[FileSystem, LoadError, HConfig]
def fromPaths(paths: List[Path]): IO[LoadError, HConfig]
def read[A](jsonPath: String*)(implicit decoder: JsonDecoder[A]): ZIO[HConfig, ReadError, A]
def readLayer[A](jsonPath: String*)(using evidence$2: Tag[A], decoder: JsonDecoder[A]): ZLayer[HConfig, ReadError, A]
def readOpt[A](jsonPath: String*)(implicit decoder: JsonDecoder[A]): ZIO[HConfig, DecodingFailure, Option[A]]
def unsafeFromEncodable[A](a: A)(using evidence$1: JsonEncoder[A]): HConfig

Concrete fields

val empty: HConfig

Implicits

Implicits

implicit val jsonCodec: JsonCodec[HConfig]