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

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

Multiplatform service manager.

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

Functions

Link copied to clipboard
fun <T : Any> <ERROR CLASS>.applyRoutes(    serviceManager: KVServiceManager<T>,     roles: Set<<ERROR CLASS>> = setOf(),     serializersModules: List<<ERROR CLASS>>? = null)

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

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

Initialize default static resources for Javalin server.

Link copied to clipboard
fun <ERROR CLASS>.kvisionInit(vararg modules: Module): <ERROR CLASS>
fun <ERROR CLASS>.kvisionInit(initStaticResources: Boolean = true, vararg modules: Module): <ERROR CLASS>

Initialization function for Javalin server.

Properties

Link copied to clipboard
const val KV_INJECTOR_KEY: String