Package io.kvision.remote

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

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

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

Types

ContextModule
Link copied to clipboard
class ContextModule(ctx: <ERROR CLASS>)
KVServiceManager
Link copied to clipboard
expect open class KVServiceManager<T : Any>(serviceClass: KClass<T>)

Multiplatform service manager.

RequestHandler
Link copied to clipboard
typealias RequestHandler = suspend <ERROR CLASS>.() -> Any
WebsocketHandler
Link copied to clipboard
typealias WebsocketHandler = (<ERROR CLASS>, <ERROR CLASS>) -> Unit

Functions

applyRoutes
Link copied to clipboard
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>)
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>)

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

initStaticResources
Link copied to clipboard
fun <ERROR CLASS>.initStaticResources()

Initialize default static resources for Jooby server.

kvisionInit
Link copied to clipboard
fun <ERROR CLASS>.kvisionInit(vararg modules: Module): <ERROR CLASS>
fun <ERROR CLASS>.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