ZTransform

scalapb.zio_grpc.ZTransform$
See theZTransform companion trait
object ZTransform

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def provideEnvironment[R, E, Context : Tag](env: => ZEnvironment[R]): ZTransform[R & Context, E, Context]

Provides the entire environment of a service (leaving only the context)

Provides the entire environment of a service (leaving only the context)

Attributes

def provideSomeEnvironment[RIn, E, ROut](f: ZEnvironment[ROut] => ZEnvironment[RIn]): ZTransform[RIn, E, ROut]

Returns a ZTransform that can provide some of the environment of a service

Returns a ZTransform that can provide some of the environment of a service

Attributes

def transformContext[RIn, E, ContextIn : Tag, ROut <: RIn, ContextOut : Tag](f: ContextOut => ZIO[ROut, E, ContextIn]): ZTransform[RIn & ContextIn, E, ROut & ContextOut]

Changes the Context type of the service from Context1 to Context2, by applying an effectful function on the environment

Changes the Context type of the service from Context1 to Context2, by applying an effectful function on the environment

Attributes