GTransform

scalapb.zio_grpc.GTransform
See theGTransform companion object
trait GTransform[+ContextIn, -ErrorIn, -ContextOut, +ErrorOut]

Describes a transformation for all effects and streams of a generic service.

Instances of this class can be used to apply a transformation to all methods of a service to generate a new "decorated" service. This can be used for pre- or post-processing of requests/response or to transform the context.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
GTransform[ContextIn, ErrorIn, ContextOut, ErrorOut]

Members list

Value members

Abstract methods

def effect[A](io: ContextIn => ZIO[Any, ErrorIn, A]): ContextOut => ZIO[Any, ErrorOut, A]
def stream[A](io: ContextIn => ZStream[Any, ErrorIn, A]): ContextOut => ZStream[Any, ErrorOut, A]

Concrete methods

def andThen[ContextIn2 <: ContextOut, ErrorIn2 >: ErrorOut, ContextOut2, ErrorOut2](other: GTransform[ContextIn2, ErrorIn2, ContextOut2, ErrorOut2]): GTransform[ContextIn, ErrorIn, ContextOut2, ErrorOut2]
def compose[ContextIn2, ErrorIn2, ContextOut2 >: ContextIn, ErrorOut2 <: ErrorIn](other: GTransform[ContextIn2, ErrorIn2, ContextOut2, ErrorOut2]): GTransform[ContextIn2, ErrorIn2, ContextOut, ErrorOut]