Package io.kvision.remote

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

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>) : KVServiceManagerJs<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 = (WsConfig) -> Unit

Functions

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

Properties

KV_INJECTOR_KEY
Link copied to clipboard
const val KV_INJECTOR_KEY: String