Package-level declarations

Contains KsContextBinding, the interface that bridges a coroutine-context element to and from the wire for @KsContext-annotated methods.

Core types including RpcObject, RpcMethod, KsrpcEnvironment, MethodMetadata, exception types, and service utilities used by generated companions and user code.

IntrospectionService, IntrospectableRpcService, RpcEndpointInfo, RpcDescriptor, RpcDataType, and helpers that derive schema descriptors from KSerializer instances.

Types

Link copied to clipboard

Services that explicitly opt into introspection.

Link copied to clipboard

Returns metadata about a service.

Link copied to clipboard
@Serializable
sealed class RpcDataType

Metadata about the RPC-level representations of inputs/outputs.

Link copied to clipboard
@Serializable
data class RpcDescriptor(val dataType: RpcDescriptorType, val serialName: String, val elements: Map<String, RpcDescriptor> = emptyMap(), val id: Int? = null)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class RpcEndpointInfo(val endpoint: String, val input: RpcDataType, val output: RpcDataType)

Introspection payload describing a single endpoint.

Functions

Link copied to clipboard
fun dataSchema(serializer: KSerializer<*>): RpcDescriptor