package core
- Alphabetic
- Public
- All
Type Members
- trait CombinedDecoderInstances extends AnyRef
- trait CombinedEncoderInstances extends AnyRef
- trait CombinedRefute[A] extends AnyRef
- trait DataSource extends AnyRef
- trait Decode extends AnyRef
- trait DecodePartiallyApplied[F[_], A, S, D, I] extends AnyRef
-
trait
Decoder[F[_], S, A, I] extends AnyRef
Reads value
A
from inputI
, wrapping result in functorF
.Reads value
A
from inputI
, wrapping result in functorF
.- F
Functor in which to wrap return type
- S
Settings to use when decoding
- A
Decoded type
- I
Input data
- trait DecoderRefute[T, S, D] extends AnyRef
- trait DerivedDecoderInstances extends AnyRef
- trait DerivedEncoderInstances extends AnyRef
- trait Encode extends AnyRef
- trait EncodePartiallyApplied[F[_], S, E, O] extends AnyRef
-
trait
Encoder[F[_], S, A, O] extends AnyRef
Encode value
A
into data sourceO
, wrapping result in functorF
Encode value
A
into data sourceO
, wrapping result in functorF
- F
functor to wrap output
- S
settings for encoding
- A
value to encode
- O
output data
- trait EncoderRefute[T, S, D] extends AnyRef
-
trait
ExtruderErrors[F[_]] extends AnyRef
Church encoding of errors which Extruder may raise for functor type
F
.Church encoding of errors which Extruder may raise for functor type
F
.Implicit instances may be derived from a cats
ApplicativeError[F, Throwable]
- F
functor type
- trait GenericDecoderInstances extends AnyRef
- trait GenericEncoderInstances extends AnyRef
-
trait
HasValue[F[_], S, I] extends AnyRef
Discovers if data source
I
has a certain value at a path.Discovers if data source
I
has a certain value at a path.Used when looking up optional values. Instances may be automatically derived from
StringReader
instances.- F
functor in which to wrap boolean result
- S
settings to use when looking up value
- I
input data
-
trait
LoadInput[F[_], I] extends AnyRef
Loads input data
I
with some side effect represented by functorF
.Loads input data
I
with some side effect represented by functorF
.- F
functor in which to wrap the result
- I
input data type
- trait LowPriorityLoadInput extends AnyRef
- trait LowPriorityShows extends AnyRef
- trait LowPriorityTransform extends AnyRef
- trait MapDecoderInstances extends OptionSelector
- trait MapEncoderInstances extends AnyRef
-
trait
MultiParser[F[_], A] extends AnyRef
Parse
A
from multiple string valuesParse
A
from multiple string valuesUses a lookup function when parsing to retrieve multiple string values from a data source. If no values could be looked up an empty option will be returned. If values could be looked up but validation failed errors will be collected on the left side of a
ValidatedNel
instance. If validation was successful then the valueA
will be returned on the right side of aValidatedNel
.Implicit
DeocderT
instances will be constructed from everyMultiParser
instance where aStringReader
instance also exists.- F
Functor in which to wrap the result
-
trait
MultiShow[A] extends AnyRef
Converts value
A
into aMap[String, String]
where each element in the map represents encoded parameters ofA
.Converts value
A
into aMap[String, String]
where each element in the map represents encoded parameters ofA
.Implicit
EncoderT
instances will be constructed from everyMultiShow
instance where aStringWriter
instance also exists.- A
input value to be converted into a
Map[String, String]
- trait OptionSelector extends AnyRef
-
trait
Parser[A] extends AnyRef
Parse value
A
from a stringParse value
A
from a stringImplicit
DeocderT
instances will be constructed from everyParser
instance where aStringReader
instance also exists.- A
output value
- trait ParserDecoderInstances extends Resolve
- trait Parsers extends AnyRef
-
trait
Prune[F[_], S, I] extends AnyRef
Used to constrain a data source
I
to a certain path, returning the constrained data source with a copy of all of its keys.Used to constrain a data source
I
to a certain path, returning the constrained data source with a copy of all of its keys.Used in some data sources when decoding a map
- F
Functor in which to wrap the result
- S
Settings to use when looking up values
- I
Data to read from and return
- trait Resolve extends OptionSelector
- trait Settings extends AnyRef
-
trait
Show[A] extends AnyRef
Encode value
A
as a stringEncode value
A
as a stringImplicit
EncoderT
instances will be constructed from everyShows
instance where aStringWriter
instance also exists.- A
value to encode
- trait ShowEncoderInstances extends AnyRef
- trait Shows extends LowPriorityShows
-
trait
StringReader[F[_], S, I] extends AnyRef
Read a string from input
I
at a path, returning an optional string wrapped in functorF
.Read a string from input
I
at a path, returning an optional string wrapped in functorF
.Used with
Parser
orMultiParser
instances to automatically deriveDecoderT
instances.- F
functor to wrap the result in
- S
settings to use when looking up
- I
input data to read from
-
trait
StringWriter[F[_], S, O] extends AnyRef
Write a string to output data
O
wrapped in functorF
. -
trait
Transform[F[_], S, I, O] extends AnyRef
Transforms encoded data or data to be decoded.
Transforms encoded data or data to be decoded. Very similar to a Kleisli composition, can even be constructed from such a composition.
Takes input data
I
and transforms it into output dataO
, wrapping the result in functorF
using a provided namespace and settings.- F
functor to wrap the result in
- S
settings used when transforming
- I
input data
- O
output data
-
trait
ValidationErrorsToThrowable extends AnyRef
Converts a single or collection of validation errors to a throwable
Converts a single or collection of validation errors to a throwable
May be used with cats-effect or when performing an unsafe invocation
Value Members
- object CombinedRefute
- object Decoder extends DecoderInstances with ParserDecoderInstances with MapDecoderInstances with DerivedDecoderInstances with GenericDecoderInstances with CombinedDecoderInstances
- object Encoder extends EncoderInstances with ShowEncoderInstances with MapEncoderInstances with DerivedEncoderInstances with GenericEncoderInstances with CombinedEncoderInstances
- object ExtruderErrors
- object HasValue
- object LoadInput extends LowPriorityLoadInput
- object MultiParser extends MultiParserInstances
- object MultiShow extends MultiShowInstances
- object Parser extends Parsers with ParserInstances
- object Prune
- object Show extends Shows with ShowInstances
- object StringReader
- object StringWriter
- object Transform extends LowPriorityTransform with TransformInstances
- object ValidationErrorsToThrowable
This is the API documentation for extruder.
The library is divided into a number of modules that either provide core functionality, support additional features via third-party dependencies, or facilitate integration with other libraries or frameworks.
Please refer to the documentation for a more detailed introduction to the library.