EffectSupport

kreuzberg.rpc.EffectSupport
See theEffectSupport companion object
trait EffectSupport[F[_]]

Defines necessary properties of the used effect

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object idSupport

Members list

Value members

Abstract methods

def failure[A](failure: Failure): F[A]

Wraps a codec error into an Effect.

Wraps a codec error into an Effect.

Attributes

def flatMap[A, B](in: F[A])(f: A => F[B]): F[B]

Defines a flatMap expression.

Defines a flatMap expression.

Attributes

def map[A, B](in: F[A])(f: A => B): F[B]

Defines a map expression.

Defines a map expression.

Attributes

def success[A](value: A): F[A]

Wraps a success into an Effect.

Wraps a success into an Effect.

Attributes

Concrete methods

def decodeResponse[A](in: F[Response])(implicit decoder: Decoder[A]): F[A]
def encodeResponse[R](in: F[R])(using encoder: Encoder[R]): F[Response]
def wrap[A](input: Either[Failure, A]): F[A]

Wrap an either into an Effect.

Wrap an either into an Effect.

Attributes

def wrapFlatMap[A](in: Either[Failure, A])(f: A => F[Json]): F[Json]