Configuration

data class Configuration(val port: Int, val services: List<BindableService> = emptyList(), val shutdownTimeout: Long)

Configuration for the gRPC server.

Constructors

Link copied to clipboard
constructor(port: Int, services: List<BindableService> = emptyList(), shutdownTimeout: Long)

Properties

Link copied to clipboard
val port: Int

The port where the server will listen for incoming connections.

Link copied to clipboard
val services: List<BindableService>

The list of services that the server will expose.

Link copied to clipboard

The maximum time to wait for the server to shut down. Default is 3000 milliseconds.