kreuzberg.rpc

package kreuzberg.rpc

Members list

Type members

Classlikes

case class ApiName(name: String) extends StaticAnnotation

Annotation to set the API name

Annotation to set the API name

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
class ApiRestClient(baseUrl: String)(implicit ec: ExecutionContext) extends CallingBackend[Future]

Rest client for API Calls.

Rest client for API Calls.

Attributes

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

Interface for a calling out backend.

Interface for a calling out backend.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
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[_]]

A wrapped service.

A wrapped service.

Attributes

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

Attributes

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

Combines multiple dispatchers into one.

Combines multiple dispatchers into one.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Dispatcher[F]
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
Known subtypes
object idSupport
object EffectSupport

Attributes

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

JSON Encoded error.

JSON Encoded error.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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
object MessageCodec

Code for encoding full messages in a JSON object.

Code for encoding full messages in a JSON object.

Attributes

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 Request(payload: Json, headers: Seq[(String, String)])

A serialized request which is transferred using a POST-Request.

A serialized request which is transferred using a POST-Request.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Request.type
case class Response(json: Json, statusCode: Int)

A Response from a dispatcher.

A Response from a dispatcher.

Value parameters

json

Serialized response

statusCode

status code to use. By default this is taken from the JSON (see Response.fromJsonString)

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Response.type
case class SecurityError(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
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]

Attributes

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

Types

type Id[T] = T