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 Ktor.

Link copied to clipboard
typealias RequestHandler = suspend RoutingContext.() -> Unit
Link copied to clipboard
Link copied to clipboard
typealias WebsocketHandler = suspend WebSocketServerSession.() -> Unit

Properties

Link copied to clipboard
val ApplicationCall.injector: Injector
Link copied to clipboard
val injectorKey: AttributeKey<Injector>

Functions

Link copied to clipboard
fun <T : Any> Route.applyRoutes(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 Application.initStaticResources()

Initialize default static resources for Ktor server.

Link copied to clipboard
fun Application.kvisionInit(vararg modules: Module): Injector
fun Application.kvisionInit(initStaticResources: Boolean, vararg modules: Module): Injector
fun Application.kvisionInit(initStaticResources: Boolean, json: Json, vararg modules: Module): Injector

Initialization function for Ktor server.

fun Application.kvisionInit(json: Json, vararg modules: Module): Injector

Initialization function for Ktor server with custom JsonSerializer.