scalapb.zio_grpc.server.CallDriver$
See theCallDriver companion class
object CallDriver
Attributes
- Companion:
- class
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CallDriver.type
Members list
Concise view
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
def makeStreamingInputCallDriver[R, Req, Res](writeResponse: (Stream[Status, Req], RequestContext, ZServerCall[Res]) => ZIO[R, Status, Unit])(zioCall: ZServerCall[Res], requestContext: RequestContext): ZIO[R, Nothing, CallDriver[R, Req]]
Creates a CallDriver for a request with a streaming input.
Creates a CallDriver for a request with a streaming input.
writeResponse: given a request, returns a effects that computes the response and writes it through the given ZServerCall.
Attributes
def makeUnaryInputCallDriver[R, Req, Res](writeResponse: (Req, RequestContext, ZServerCall[Res]) => ZIO[R, Status, Unit])(zioCall: ZServerCall[Res], requestContext: RequestContext): ZIO[R, Nothing, CallDriver[R, Req]]
Creates a CallDriver for a request with a unary input.
Creates a CallDriver for a request with a unary input.
writeResponse: given a request, returns a effects that computes the response and writes it through the given ZServerCall.
Attributes
def streamingInputCallDriver[R, Req, Res](runtime: Runtime[R], call: ZServerCall[Res], cancelled: Promise[Nothing, Unit], queue: Queue[Option[Req]], requestContext: RequestContext, writeResponse: Stream[Status, Req] => ZIO[R, Status, Unit]): CallDriver[R, Req]
def unaryInputCallDriver[R, Req](runtime: Runtime[R], call: ZServerCall[_], cancelled: Promise[Nothing, Unit], completed: Promise[Status, Unit], request: Promise[Nothing, Req], requestContext: RequestContext, writeResponse: Req => ZIO[R, Status, Unit]): CallDriver[R, Req]