Package io.kvision.remote

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

Types

ContextModule
Link copied to clipboard
class ContextModule(ctx: Context) : AbstractModule
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 Jooby.
RequestHandler
Link copied to clipboard
typealias RequestHandler = suspend HandlerContext.() -> Any
WebsocketHandler
Link copied to clipboard
typealias WebsocketHandler = (ctx: Context, configurer: WebSocketConfigurer) -> Unit

Functions

applyRoutes
Link copied to clipboard
fun <T : Any> CoroutineRouter.applyRoutes(serviceManager: KVServiceManager<T>)
A function to generate routes based on definitions from the service manager.
fun <T : Any> Kooby.applyRoutes(serviceManager: KVServiceManager<T>)
A function to generate routes based on definitions from the service manager.
kvisionInit
Link copied to clipboard
fun Kooby.kvisionInit(vararg modules: Module)
Initialization function for Jooby server.

Properties

KV_INJECTOR_KEY
Link copied to clipboard
const val KV_INJECTOR_KEY: String