Package io.kvision.remote

Types

KVServiceManager
Link copied to clipboard
common
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>
Multiplatform service manager.
js
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>
Multiplatform service manager.
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceBinder<T, RequestHandler, WebsocketHandler> , KVServiceMgr<T>
Multiplatform service manager for Javalin.
RequestHandler
Link copied to clipboard
typealias RequestHandler = (Context) -> Unit
WebsocketHandler
Link copied to clipboard
typealias WebsocketHandler = (WsHandler) -> Unit

Functions

applyRoutes
Link copied to clipboard
fun <T : Any> Javalin.applyRoutes(serviceManager: KVServiceManager<T>, roles: Set<Role> = setOf())
A function to generate routes based on definitions from the service manager.
kvisionInit
Link copied to clipboard
fun Javalin.kvisionInit(vararg modules: Module)
Initialization function for Javalin server.

Properties

KV_INJECTOR_KEY
Link copied to clipboard
const val KV_INJECTOR_KEY: String