ServiceList

scalapb.zio_grpc.ServiceList
See theServiceList companion object
sealed class ServiceList[-RR]

Represents a managed list of services to be added to the a server.

This is just a wrapper around a list of ServerServiceDefinition.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ServiceList.type

Members list

Value members

Concrete methods

def add[S1 : ZBindableService](s1: S1): ServiceList[RR]

Adds a service to the service list

Adds a service to the service list

Attributes

Adds a dependency on a service that will be provided later from the environment or a Layer *

Adds a dependency on a service that will be provided later from the environment or a Layer *

Attributes

def addZIO[R1, S1 : ZBindableService](s1: ZIO[R1, Throwable, S1]): ServiceList[RR & R1]

Adds an effect that returns a service to the service list

Adds an effect that returns a service to the service list

Attributes

def provide(layer: ZLayer[Any, Throwable, RR]): ServiceList[Any]

Provides all layers needed by this ServiceList

Provides all layers needed by this ServiceList

Attributes

def provideEnvironment(r: => ZEnvironment[RR]): ServiceList[Any]
def provideLayer[R1](layer: ZLayer[R1, Throwable, RR]): ServiceList[R1]

Provides layers to this ServiceList which translates it to another layer

Provides layers to this ServiceList which translates it to another layer

Attributes

Concrete fields

val bindAll: ZIO[RR, Throwable, List[ServerServiceDefinition]]