Package-level declarations

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
Link copied to clipboard
typealias WebsocketHandler = (<Error class: unknown class>, <Error class: unknown class>) -> Unit

Properties

Link copied to clipboard

Functions

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

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

Link copied to clipboard

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

Link copied to clipboard

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 Vert.x server.

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

Initialization function for Vert.x server.

fun <Error class: unknown class>.kvisionInit(router: <Error class: unknown class>, server: <Error class: unknown class>, wsServiceManagers: List<KVServiceManager<*>> = emptyList(), serializersModules: List<<Error class: unknown class>>? = null, vararg modules: Module): <Error class: unknown class>
fun <Error class: unknown class>.kvisionInit(initStaticResources: Boolean = true, router: <Error class: unknown class>, server: <Error class: unknown class>, wsServiceManagers: List<KVServiceManager<*>> = emptyList(), serializersModules: List<<Error class: unknown class>>? = null, vararg modules: Module): <Error class: unknown class>

Initialization function for Vert.x server with support for WebSockets.

Link copied to clipboard
fun <Error class: unknown class>.serviceRoute(service: KVServiceManager<*>, handler: <Error class: unknown class><<Error class: unknown class>>)