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<out T : Any>(serviceClass: KClass<T>)

Multiplatform service manager.

Link copied to clipboard
typealias RequestHandler = (<Error class: unknown class>) -> Unit
Link copied to clipboard
typealias WebsocketHandler = (<Error class: unknown class>) -> Unit

Functions

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

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

Link copied to clipboard
fun getAllServiceManagers(): List<KVServiceManager<*>>

This will make IntelliJ think that this function exists. The real implementation will be generated by the KVision Gradle Plugin.

Link copied to clipboard
inline fun <T : Any> getServiceManager(): KVServiceManager<T>

This will make IntelliJ think that this function exists. The real implementation will be generated by the KVision Gradle Plugin.

Link copied to clipboard
fun getServiceManagers(vararg kclass: KClass<*>): List<KVServiceManager<*>>

This will make IntelliJ think that this function exists. The real implementation will be generated by the KVision Gradle Plugin.

Link copied to clipboard
fun <Error class: unknown class>.initStaticResources()

Initialize default static resources for Javalin server.

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

Initialization function for Javalin server.

Properties

Link copied to clipboard
const val KV_INJECTOR_KEY: String