GrpcServerConfiguration

Available in a dev version: 0․11․0-grpc-186

How to configure

A configuration class for setting up a gRPC server.

This class provides an API to configure various server parameters, such as message marshallers, security credentials, server-side interceptors, and service registration.

Properties

Link copied to clipboard

Sets the credentials to be used by the gRPC server for secure communication.

Link copied to clipboard

Sets a custom GrpcHandlerRegistry to be used by the gRPC server for resolving service implementations that were not registered before via the services configuration block.

Link copied to clipboard
Link copied to clipboard

Sets a custom GrpcMarshallerResolver to be used by the gRPC server for resolving the appropriate marshaller for message serialization and deserialization.

Functions

Link copied to clipboard
fun intercept(vararg interceptors: GrpcServerInterceptor)

Registers one or more server-side interceptors for the gRPC server.

Link copied to clipboard
fun services(block: RpcServer.() -> Unit)

Configures the gRPC server to register services.

Link copied to clipboard
fun tls(certificateChain: String, privateKey: String, configure: GrpcTlsServerCredentialsBuilder.() -> Unit): GrpcServerCredentials

Configures and creates TLS (Transport Layer Security) credentials for the gRPC server.