GrpcDsl
object GrpcDsl
DSL entry point for building gRPC channels, servers, attributes, and stream observers.
Supports both Netty-based (network) and in-process transports, with optional TLS and retry configuration.
Types
Functions
Link copied to clipboard
Builds gRPC Attributes using a DSL-style configuration block.
Link copied to clipboard
fun channel(hostName: String = "", port: Int = -1, enableRetry: Boolean = false, maxRetryAttempts: Int = 5, tlsContext: TlsContext, overrideAuthority: String = "", inProcessServerName: String = "", block: ManagedChannelBuilder<*>.() -> Unit): ManagedChannel
Builds a ManagedChannel using either a Netty transport or an in-process transport.
Link copied to clipboard
fun <T> streamObserver(init: GrpcDsl.StreamObserverHelper<T>.() -> Unit): GrpcDsl.StreamObserverHelper<T>
Creates a StreamObserver using a DSL-style builder.