kreuzberg.rpc

package kreuzberg.rpc

Members list

Type members

Classlikes

class ApiRestClient(baseUrl: String)(implicit ec: ExecutionContext) extends CallingBackend[Future, String]

Rest client for API Calls.

Rest client for API Calls.

Attributes

Supertypes
trait CallingBackend[Future, String]
class Object
trait Matchable
class Any
trait CallingBackend[F[_], T]

Interface for a calling out backend.

Interface for a calling out backend.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Codec[U, T]

Encapsulates encoding of single values.

Encapsulates encoding of single values.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Codec

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Codec.type
case class CodecError(message: String, cause: Throwable) extends Failure

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait Dispatcher[F[_], T]

A wrapped service.

A wrapped service.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Dispatchers[F, T]
object Dispatcher

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Dispatcher.type
case class Dispatchers[F[_], T](dispatchers: Seq[Dispatcher[F, T]])(using effect: EffectSupport[F]) extends Dispatcher[F, T]

Combines multiple dispatchers into one.

Combines multiple dispatchers into one.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Dispatcher[F, T]
class Object
trait Matchable
class Any
Show all
trait EffectSupport[F[_]]

Defines necessary properties of the used effect

Defines necessary properties of the used effect

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object EffectSupport

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class EncodedError(name: String, message: String, extra: Option[String], code: Option[Int])

JSON Encoded error.

JSON Encoded error.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Failure(message: String, cause: Throwable) extends RuntimeException

Attributes

Companion
object
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
object Failure

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Failure.type
trait MessageCodec[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object MessageCodec

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class NotFound(message: String, cause: Throwable) extends Failure

Some resource was not found.

Some resource was not found.

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class ServiceExecutionError(message: String, code: Option[Int], cause: Throwable) extends Failure

Generic execution error on server side.

Generic execution error on server side.

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Stub

Macro generated Stubs forwarding calls to CallingBackend

Macro generated Stubs forwarding calls to CallingBackend

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Stub.type
case class UnknownCallError(serviceName: String, call: String) extends Failure

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class UnknownServiceError(serviceName: String) extends Failure

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class ValidationFailed(message: String, cause: Throwable) extends Failure

Some validation failed"

Some validation failed"

Attributes

Supertypes
trait Product
trait Equals
class Failure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class ZioApiRestClient(baseUrl: String) extends CallingBackend[Task, String]

Attributes

Supertypes
trait CallingBackend[Task, String]
class Object
trait Matchable
class Any