ListenerDriver

scalapb.zio_grpc.server.ListenerDriver$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def exitToStatus(ex: Exit[StatusException, Unit]): Status
def makeStreamingInputListener[Req, Res](writeResponse: (Stream[StatusException, Req], RequestContext, ZServerCall[Res]) => ZIO[Any, StatusException, Unit])(zioCall: ZServerCall[Res], requestContext: RequestContext): ZIO[Any, Nothing, Listener[Req]]

Creates a Listener for a request with a streaming input.

Creates a Listener 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 makeUnaryInputListener[Req, Res](writeResponse: (Req, RequestContext, ZServerCall[Res]) => ZIO[Any, StatusException, Unit], runtime: Runtime[Any])(zioCall: ZServerCall[Res], requestContext: RequestContext): ZIO[Any, Nothing, Listener[Req]]

Creates a Listener for a request with a unary input.

Creates a Listener 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 streamingInputListener[Req, Res](runtime: Runtime[Any], call: ZServerCall[Res], queue: Queue[Option[Req]], requestContext: RequestContext, writeResponse: Stream[StatusException, Req] => ZIO[Any, StatusException, Unit]): ZIO[Any, Nothing, Listener[Req]]
def unaryInputListener[Req](runtime: Runtime[Any], scope: Closeable, call: ZServerCall[_], completed: Promise[StatusException, Unit], request: Promise[Nothing, Req], requestContext: RequestContext, writeResponse: Req => ZIO[Any, StatusException, Unit]): ZIO[Any, Nothing, Listener[Req]]