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
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>
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 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>)
fun <T : Any> Kooby.applyRoutes(serviceManager: KVServiceManager<T>)

A function to generate routes based on definitions from the service manager.

initStaticResources
Link copied to clipboard
fun Kooby.initStaticResources()

Initialize default static resources for Jooby server.

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

Initialization function for Jooby server.

Properties

KV_INJECTOR_KEY
Link copied to clipboard
const val KV_INJECTOR_KEY: String