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
@Factory
open class HttpRequestBeanFactory

Helper factory for the HttpRequest bean.

Link copied to clipboard

A helper class for holding http response mutator function.

Link copied to clipboard

Helper factory for the HttpResponseMutator bean.

Link copied to clipboard
@Controller(value = "/kv")
open class KVController

Controller for handling automatic routes.

Link copied to clipboard
data class KVManagers(val services: List<KVServiceManager<*>>, val serializersModules: List<SerializersModule>? = null)

A wrapper class for declaring a list of KVision Service Managers as a dependency.

Link copied to clipboard
@ServerWebSocket(value = "/kvws/{path}")
class KVServerWebSocket

Micronaut WebSocket handler.

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

Link copied to clipboard
@Controller(value = "/kvsse")
open class KVSseController

Controller for handling automatic routes.

Link copied to clipboard
typealias RequestHandler = suspend (HttpRequest<*>, ThreadLocal<HttpRequest<*>>, ThreadLocal<HttpResponseMutator>, ApplicationContext) -> HttpResponse<String>
Link copied to clipboard
typealias SseHandler = (HttpRequest<*>, ThreadLocal<HttpRequest<*>>, ApplicationContext) -> Publisher<Event<String>>
Link copied to clipboard
typealias WebsocketHandler = suspend (WebSocketSession, ThreadLocal<WebSocketSession>, ApplicationContext, ReceiveChannel<String>, SendChannel<String>) -> Unit
Link copied to clipboard
@Factory
open class WebSocketSessionBeanFactory

Helper factory for the WebSocketSession bean.

Functions

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 <T> HttpRequest<T>.matches(vararg services: KVServiceManager<*>): Boolean