KVServiceManager

open class KVServiceManager<T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T>

Multiplatform service manager.

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.

Constructors

KVServiceManager
Link copied to clipboard
fun <T : Any> KVServiceManager(serviceClass: KClass<T>)

Types

Companion
Link copied to clipboard
object Companion

Functions

bind
Link copied to clipboard
inline fun <PAR1 : Any, PAR2 : Any> bind(noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, route: String?)
inline fun <RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String?)
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1 : Any, PAR2 : Any> bind(noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, route: String?)
inline fun <RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String?)
inline fun <PAR, RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?)
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: HttpMethod, route: String?)
bindTabulatorRemote
Link copied to clipboard
inline fun <RET> bindTabulatorRemote(noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>, route: String?)
inline fun <RET> bindTabulatorRemote(noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>, route: String?)
bindWebsocket
Link copied to clipboard
fun <REQ, RES> bindWebsocket(route: String?, function: suspend T.(ReceiveChannel<REQ>, SendChannel<RES>) -> Unit, requestSerializer: KSerializer<REQ>, responseSerializer: KSerializer<RES>)
createRequestHandler
Link copied to clipboard
open override fun <RET> createRequestHandler(method: HttpMethod, function: suspend T.(params: List<String?>) -> RET, serializer: KSerializer<RET>): RequestHandler
createWebsocketHandler
Link copied to clipboard
open override fun <REQ, RES> createWebsocketHandler(function: suspend T.(ReceiveChannel<REQ>, SendChannel<RES>) -> Unit, requestSerializer: KSerializer<REQ>, responseSerializer: KSerializer<RES>): WebsocketHandler
getCall
Link copied to clipboard
open override fun getCall(function: Function<*>): Pair<String, HttpMethod>?
open fun getCall(function: Function<*>): Pair<String, HttpMethod>?
open fun getCall(function: Function<*>): Pair<String, HttpMethod>?
requireCall
Link copied to clipboard
open fun requireCall(function: Function<*>): Pair<String, HttpMethod>
open fun requireCall(function: Function<*>): Pair<String, HttpMethod>
open fun requireCall(function: Function<*>): Pair<String, HttpMethod>

Properties

calls
Link copied to clipboard
js
val calls: MutableMap<String, Pair<String, HttpMethod>>
counter
Link copied to clipboard
js
var counter: Int
deSerializer
Link copied to clipboard
val deSerializer: ObjectDeSerializer
routeMapRegistry
Link copied to clipboard
val routeMapRegistry: RouteMapRegistry<RequestHandler>
serviceClass
Link copied to clipboard
val serviceClass: KClass<T>
webSocketRequests
Link copied to clipboard
val webSocketRequests: MutableMap<String, WebsocketHandler>