Package-level declarations

Types

Link copied to clipboard
class ContextModule(ctx: Context) : AbstractModule
Link copied to clipboard
typealias RequestHandler = suspend HandlerContext.() -> Any
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>

Fullstack service manager for Jooby.

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

Fullstack RPC service manager.

Link copied to clipboard
typealias SseHandler = ServerSentHandler.() -> Unit
Link copied to clipboard
typealias WebsocketHandler = (ctx: Context, configurer: WebSocketConfigurer) -> Unit

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any> CoroutineRouter.applyRoutes(serviceManager: RpcServiceManager<T>, serializersModules: List<SerializersModule>? = null)
fun <T : Any> Kooby.applyRoutes(serviceManager: RpcServiceManager<T>, serializersModules: List<SerializersModule>? = null)

A function to generate routes based on definitions from the service manager.

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

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 Kooby.initRpc(vararg modules: Module)
fun Kooby.initRpc(initStaticResources: Boolean = true, vararg modules: Module)

Initialization function for Jooby server.

Link copied to clipboard

Initialize default static resources for Jooby server.