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

Properties

Link copied to clipboard
val <Error class: unknown class>.injector: <Error class: unknown class>
Link copied to clipboard
val injectorKey: <Error class: unknown class>

Functions

Link copied to clipboard
fun <T : Any> <Error class: unknown class>.applyRoutes(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 Ktor 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, vararg modules: Module): <Error class: unknown class>
fun <Error class: unknown class>.kvisionInit(initStaticResources: Boolean, json: <Error class: unknown class>, vararg modules: Module): <Error class: unknown class>

Initialization function for Ktor server.

fun <Error class: unknown class>.kvisionInit(json: <Error class: unknown class>, vararg modules: Module): <Error class: unknown class>

Initialization function for Ktor server with custom JsonSerializer.