open class KVServiceManager<T : Any>
Multiplatform service manager.
(js)
<init> |
Multiplatform service manager. KVServiceManager(serviceClass: KClass<T>) |
(js)
calls |
val calls: MutableMap<String, Pair<String, HttpMethod>> |
(js)
counter |
var counter: Int |
(js)
bind |
Binds a given route with a function of the receiver. fun <RET> bind(function: suspend T.() -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: HttpMethod = HttpMethod.POST, route: String? = null): Unit
Binds a given function of the receiver as a web socket connection fun <PAR1 : Any, PAR2 : Any> bind(function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, route: String? = null): Unit |
(js)
bindTabulatorRemote |
Binds a given function of the receiver as a tabulator component source fun <RET> bindTabulatorRemote(function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>, route: String? = null): Unit |
(js)
getCalls |
Returns the map of defined paths. open fun getCalls(): Map<String, Pair<String, HttpMethod>> |