Package io.kvision.remote

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

Types

Column
Link copied to clipboard
annotation class Column(value: String)
typealias Column = Column
Id
Link copied to clipboard
annotation class Id
typealias Id = Id
KVHandler
Link copied to clipboard
@Component
open class KVHandler(services: List<KVServiceManager<*>>, applicationContext: ApplicationContext)

Default Spring Boot handler

KVRouterConfiguration
Link copied to clipboard
@Configuration
open class KVRouterConfiguration

Default Spring Boot routes

KVServiceManager
Link copied to clipboard
open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>
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 Spring Boot.

KVWebSocketConfig
Link copied to clipboard
@Configuration
open class KVWebSocketConfig(services: List<KVServiceManager<*>>, applicationContext: ApplicationContext)

Spring Boot WebSocket configuration

KVWebSocketHandler
Link copied to clipboard
class KVWebSocketHandler(services: List<KVServiceManager<*>>, threadLocalWebSocketSession: ThreadLocal<WebSocketSession>, applicationContext: ApplicationContext) : WebSocketHandler, CoroutineScope

Spring Boot WebSocket handler

PersistenceConstructor
Link copied to clipboard
annotation class PersistenceConstructor
typealias PersistenceConstructor = PersistenceConstructor
RequestHandler
Link copied to clipboard
typealias RequestHandler = suspend (ServerRequest, ThreadLocal<ServerRequest>, ApplicationContext) -> ServerResponse
Table
Link copied to clipboard
annotation class Table(value: String)
typealias Table = Table
Transient
Link copied to clipboard
annotation class Transient
typealias Transient = Transient
Value
Link copied to clipboard
annotation class Value(value: String)
typealias Value = Value
Version
Link copied to clipboard
annotation class Version
typealias Version = Version
WebsocketHandler
Link copied to clipboard
typealias WebsocketHandler = suspend (WebSocketSession, ThreadLocal<WebSocketSession>, ApplicationContext, ReceiveChannel<String>, SendChannel<String>) -> Unit

Functions

getServerWebExchangeMatcher
Link copied to clipboard
fun getServerWebExchangeMatcher(vararg services: KVServiceManager<*>): Array<ServerWebExchangeMatcher>

A function to gather paths for spring security matchers.

serviceMatchers
Link copied to clipboard
fun serviceMatchers(vararg services: KVServiceManager<*>): ServerWebExchangeMatcher
fun ServerHttpSecurity.AuthorizeExchangeSpec.serviceMatchers(vararg services: KVServiceManager<*>): ServerHttpSecurity.AuthorizeExchangeSpec.Access

A function to gather paths for spring security matchers.