Package-level declarations

Types

Link copied to clipboard
typealias RequestHandler = suspend (ServerRequest, ThreadLocal<ServerRequest>, ThreadLocal<ServerResponse.HeadersBuilder<ServerResponse.BodyBuilder>>, ApplicationContext) -> ServerResponse
Link copied to clipboard
@Component
open class RpcHandler(services: List<RpcServiceManager<*>>, applicationContext: ApplicationContext)

Default Spring Boot handler

Link copied to clipboard
@Configuration
open class RpcRouterConfiguration

Default Spring Boot routes

Link copied to clipboard
expect open class RpcServiceManager<out T : Any>(serviceClass: KClass<T>) : RpcServiceMgr<T>

Fullstack RPC service manager.

actual open class RpcServiceManager<out T : Any>(serviceClass: KClass<T>) : RpcServiceManagerJs<T> , RpcServiceMgr<T>

Fullstack RPC service manager.

actual open class RpcServiceManager<out T : Any>(serviceClass: KClass<T>) : RpcServiceBinder<T, RequestHandler, WebsocketHandler, SseHandler> , RpcServiceMgr<T>

Multiplatform service manager for Spring Boot.

actual open class RpcServiceManager<out T : Any>(serviceClass: KClass<T>) : RpcServiceManagerJs<T> , RpcServiceMgr<T>

Fullstack RPC service manager.

Link copied to clipboard
@Configuration
open class RpcWebSocketConfig(services: List<RpcServiceManager<*>>, applicationContext: ApplicationContext)

Spring Boot WebSocket configuration

Link copied to clipboard
class RpcWebSocketHandler(services: List<RpcServiceManager<*>>, threadLocalWebSocketSession: ThreadLocal<WebSocketSession>, applicationContext: ApplicationContext) : WebSocketHandler, CoroutineScope

Spring Boot WebSocket handler

Link copied to clipboard
Link copied to clipboard
@Configuration
@EnableWebFlux
open class WebFluxConfig : WebFluxConfigurer
Link copied to clipboard
typealias WebsocketHandler = suspend (WebSocketSession, ThreadLocal<WebSocketSession>, ApplicationContext, ReceiveChannel<String>, SendChannel<String>) -> Unit

Functions

Link copied to clipboard

This will make IntelliJ think that this function exists. The real implementation will be generated by the Kilua RPC Gradle Plugin.

Link copied to clipboard
fun getServerWebExchangeMatcher(vararg services: RpcServiceManager<*>): Array<ServerWebExchangeMatcher>

A function to gather paths for spring security matchers.

Link copied to clipboard

This will make IntelliJ think that this function exists. The real implementation will be generated by the Kilua RPC Gradle Plugin.

Link copied to clipboard
fun getServiceManagers(vararg kclass: KClass<*>): List<RpcServiceManager<*>>

This will make IntelliJ think that this function exists. The real implementation will be generated by the Kilua RPC Gradle Plugin.

Link copied to clipboard
fun serviceMatchers(vararg services: RpcServiceManager<*>): ServerWebExchangeMatcher

A function to gather paths for spring security matchers.

Link copied to clipboard
fun ServerHttpSecurity.AuthorizeExchangeSpec.serviceMatchers(vararg services: RpcServiceManager<*>): ServerHttpSecurity.AuthorizeExchangeSpec.Access

A function to gather paths for spring security matchers.