From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-k-v-service-manager/index.html | 177 +++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 api1/pl.treksoft.kvision.remote/-k-v-service-manager/index.html (limited to 'api1/pl.treksoft.kvision.remote/-k-v-service-manager/index.html') diff --git a/api1/pl.treksoft.kvision.remote/-k-v-service-manager/index.html b/api1/pl.treksoft.kvision.remote/-k-v-service-manager/index.html new file mode 100644 index 00000000..dbbd8c09 --- /dev/null +++ b/api1/pl.treksoft.kvision.remote/-k-v-service-manager/index.html @@ -0,0 +1,177 @@ + + + +KVServiceManager - kvision + + + +kvision / pl.treksoft.kvision.remote / KVServiceManager
+
+

KVServiceManager

+open actual class KVServiceManager<T : Any> +

Multiplatform service manager.

+

Constructors

+ + + + + + + +
+

<init>

+
+KVServiceManager(serviceClass: KClass<T>) +

Multiplatform service manager.

+
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

calls

+
+val calls: MutableMap<String, Pair<String, HttpMethod>>
+

counter

+
+var counter: Int
+

deleteRequests

+
+val deleteRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
+

getRequests

+
+val getRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
+

mapper

+
+val mapper: <ERROR CLASS>
+

optionsRequests

+
+val optionsRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
+

postRequests

+
+val postRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
+

putRequests

+
+val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
+

routes

+
+val routes: MutableList<<ERROR CLASS>.() -> Unit>
+

serviceClass

+
+val serviceClass: KClass<T>
+

webSocketRequests

+
+val webSocketRequests: MutableMap<String, suspend <ERROR CLASS>.() -> Unit>
+

webSocketsRequests

+
+val webSocketsRequests: MutableMap<String, suspend (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS><String>, <ERROR CLASS><String>) -> Unit>
+

Functions

+ + + + + + + + + + + +
+

bind

+
+actual fun <RET> bind(function: suspend T.() -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?): Unit +

Binds a given route with a function of the receiver.

+actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit +

Binds a given function of the receiver as a select options source

+actual fun <RET> bind(function: T.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?) -> <ERROR CLASS><RET>): Unit +

Binds a given function of the receiver as a tabulator component source

+actual fun <PAR1 : Any, PAR2 : Any> bind(function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit, route: String?): Unit +

Binds a given web socket connetion with a function of the receiver.

+
+

getCalls

+
+fun getCalls(): Map<String, Pair<String, HttpMethod>> +

Returns the map of defined paths.

+
+

Companion Object Properties

+ + + + + + + +
+

LOG

+
+val LOG: <ERROR CLASS>
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit