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>) : KVServiceMgr<T>

Multiplatform service manager.

actual open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceManagerJs<T> , KVServiceMgr<T>

Multiplatform service manager.

Multiplatform service manager for Vert.x.

Link copied to clipboard
typealias RequestHandler = (RoutingContext) -> Unit
Link copied to clipboard
Link copied to clipboard
typealias WebsocketHandler = (Injector, ServerWebSocket) -> Unit

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any> Vertx.applyRoutes(router: Router, serviceManager: KVServiceManager<T>, serializersModules: List<SerializersModule>? = 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 Router.initStaticResources()

Initialize default static resources for Vert.x server.

Link copied to clipboard
fun Vertx.kvisionInit(router: Router, vararg modules: Module): Injector
fun Vertx.kvisionInit(initStaticResources: Boolean = true, router: Router, vararg modules: Module): Injector

Initialization function for Vert.x server.

fun Vertx.kvisionInit(router: Router, server: HttpServer, wsServiceManagers: List<KVServiceManager<*>> = emptyList(), serializersModules: List<SerializersModule>? = null, vararg modules: Module): Injector
fun Vertx.kvisionInit(initStaticResources: Boolean = true, router: Router, server: HttpServer, wsServiceManagers: List<KVServiceManager<*>> = emptyList(), serializersModules: List<SerializersModule>? = null, vararg modules: Module): Injector

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

Link copied to clipboard
fun Router.serviceRoute(service: KVServiceManager<*>, handler: Handler<RoutingContext>)