scalapb.zio_grpc.server

Type members

Classlikes

case
class CallDriver[R, Req](listener: Listener[Req], run: ZIO[R, Status, Unit])

Represents a running request to be served by ZServerCallHandler

Represents a running request to be served by ZServerCallHandler

The listener is returned to grpc-java to feed input into the request.

The run represents an effect of running the request: it reads the input provided to the listener, and writes the response to an output channel. It handles interrupts by sending a cancel event through the channel.

Companion
object
object CallDriver
Companion
class
final
class ZServerCall[Res](call: ServerCall[_, Res]) extends AnyVal

Wrapper around io.grpc.ServerCall that lifts its effects into ZIO values

Wrapper around io.grpc.ServerCall that lifts its effects into ZIO values

class ZServerCallHandler[R, Req, Res](runtime: Runtime[R], mkDriver: (ZServerCall[Res], RequestContext) => URIO[R, CallDriver[R, Req]]) extends ServerCallHandler[Req, Res]
Companion
object
Companion
class