Package io.kvision.remote

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

Types

HttpRequestBeanFactory
Link copied to clipboard
@Factory()
open class HttpRequestBeanFactory
Helper factory for the HttpRequest bean.
KVController
Link copied to clipboard
@Controller(value = /)
open class KVController
Controller for handling automatic routes.
KVManagers
Link copied to clipboard
data class KVManagers(services: List<KVServiceManager<*>>)
A wrapper class for declaring a list of KVision Service Managers as a dependency.
KVServerWebSocket
Link copied to clipboard
@ServerWebSocket(value = /kvws/{path})
class KVServerWebSocket
Micronaut WebSocket handler.
KVServiceManager
Link copied to clipboard
common
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>
Multiplatform service manager.
js
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceManagerJs<T> , KVServiceMgr<T>
Multiplatform service manager.
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceBinder<T, RequestHandler, WebsocketHandler> , KVServiceMgr<T>
Multiplatform service manager for Micronaut.
RequestHandler
Link copied to clipboard
typealias RequestHandler = suspend (HttpRequest<*>, ThreadLocal<HttpRequest<*>>, ApplicationContext) -> HttpResponse<String>
StaticResources
Link copied to clipboard
@Factory()
class StaticResources
Default static resources configuration.
WebsocketHandler
Link copied to clipboard
typealias WebsocketHandler = suspend (WebSocketSession, ThreadLocal<WebSocketSession>, ApplicationContext, ReceiveChannel<String>, SendChannel<String>) -> Unit
WebSocketSessionBeanFactory
Link copied to clipboard
@Factory()
open class WebSocketSessionBeanFactory
Helper factory for the WebSocketSession bean.

Functions

matches
Link copied to clipboard
fun <T> HttpRequest<T>.matches(vararg services: KVServiceManager<*>): Boolean