GrpcServer

class GrpcServer(configuration: GrpcServer.Configuration, dispatcher: CoroutineDispatcher = Dispatchers.IO) : AutoCloseable

A gRPC server instance, acting as entry point for managing gRPC services lifecycle.

Constructors

Link copied to clipboard
constructor(configuration: GrpcServer.Configuration, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Types

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

Configuration for the gRPC server.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun shutdown()

Shuts down the gRPC server.

Link copied to clipboard
fun start()

Starts the gRPC server.