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

Describes how a single piece of per-call context is propagated across the wire. Implementations are referenced from KsContext.binding on a meta-annotation and are responsible for:

Link copied to clipboard

A service whose methods accept sub-service inputs, use Flow<T>, or otherwise require bidirectional transport capability.

Link copied to clipboard
@Serializable
data class RpcFailure(val stack: String)

Serializable wrapper around exceptions thrown in remote calls.

Link copied to clipboard

A service whose methods may return other @KsService sub-services.

Link copied to clipboard

Super-interface of all services tagged with com.monkopedia.ksrpc.annotation.KsService.

Link copied to clipboard

Version of Closeable that has suspending close.