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
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 Javalin.

Link copied to clipboard
typealias RequestHandler = (Context) -> Unit
Link copied to clipboard
typealias SseHandler = (SseClient) -> Unit
Link copied to clipboard
typealias WebsocketHandler = (WsConfig) -> Unit

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any> Javalin.applyRoutes(serviceManager: KVServiceManager<T>, roles: Set<RouteRole> = setOf(), 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
fun Javalin.initStaticResources()

Initialize default static resources for Javalin server.

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

Initialization function for Javalin server.