Package io. kvision. remote
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
Types
KVService Manager
Link copied to clipboard
Multiplatform service manager.
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceBinder<T, RequestHandler, WebsocketHandler> , KVServiceMgr<T>
Content copied to clipboard
Multiplatform service manager for Javalin.
Request Handler
Link copied to clipboard
Websocket Handler
Link copied to clipboard
Functions
apply Routes
Link copied to clipboard
fun <T : Any> Javalin.applyRoutes(serviceManager: KVServiceManager<T>, roles: Set<RouteRole> = setOf())
Content copied to clipboard
A function to generate routes based on definitions from the service manager.
init Static Resources
Link copied to clipboard
Initialize default static resources for Javalin server.
kvision Init
Link copied to clipboard
fun Javalin.kvisionInit(initStaticResources: Boolean = true, vararg modules: Module): Injector
Content copied to clipboard
Initialization function for Javalin server.
Properties
KV_INJECTOR_KEY
Link copied to clipboard