Dispatcher

kreuzberg.rpc.Dispatcher
See theDispatcher companion object
trait Dispatcher[F[_]]

A wrapped service.

Attributes

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

Members list

Value members

Abstract methods

def call(serviceName: String, name: String, request: Request): F[Response]

Issue a call.

Issue a call.

Attributes

def handles(serviceName: String): Boolean

Returns true if a given service is handled.

Returns true if a given service is handled.

Attributes

Concrete methods

def preRequestFlatMap(f: Request => F[Request])(using effect: EffectSupport[F]): Dispatcher[F]

Intercept into the request. This way it's possible to e.g. delegate generic security handling.

Intercept into the request. This way it's possible to e.g. delegate generic security handling.

Attributes