Package-level declarations

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

Types

Link copied to clipboard
class ContextModule(ctx: Context) : AbstractModule
Link copied to clipboard
expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>

Multiplatform service manager.

actual open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceManagerJs<T> , KVServiceMgr<T>

Multiplatform service manager.

Multiplatform service manager for Jooby.

Link copied to clipboard
typealias RequestHandler = suspend HandlerContext.() -> Any
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: KVServiceManager<T>, serializersModules: List<SerializersModule>? = null)
fun <T : Any> Kooby.applyRoutes(serviceManager: KVServiceManager<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 KVision Gradle Plugin.

Link copied to clipboard

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

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

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

Link copied to clipboard

Initialize default static resources for Jooby server.

Link copied to clipboard
fun Kooby.kvisionInit(vararg modules: Module)
fun Kooby.kvisionInit(initStaticResources: Boolean = true, vararg modules: Module)

Initialization function for Jooby server.