From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 22 Oct 2018 00:01:39 +0200 Subject: API documentation for KVision 0.0.19 --- .../-jooby-service-manager/index.html | 145 +++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 api/pl.treksoft.kvision.remote/-jooby-service-manager/index.html (limited to 'api/pl.treksoft.kvision.remote/-jooby-service-manager/index.html') diff --git a/api/pl.treksoft.kvision.remote/-jooby-service-manager/index.html b/api/pl.treksoft.kvision.remote/-jooby-service-manager/index.html new file mode 100644 index 00000000..1e24f81b --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-jooby-service-manager/index.html @@ -0,0 +1,145 @@ + + + +JoobyServiceManager - kvision + + + +kvision / pl.treksoft.kvision.remote / JoobyServiceManager
+
+

JoobyServiceManager

+open expect class JoobyServiceManager<T : Any> : ServiceManager +

Multiplatform service manager for Jooby.

+

Constructors

+ + + + + + + +
+

<init>

+
+JoobyServiceManager(service: T) +

Multiplatform service manager for Jooby.

+
+

Properties

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

calls

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

counter

+
+var counter: Int
+

mapper

+
+val mapper: <ERROR CLASS>
+

routes

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

service

+
+val service: T
+

Functions

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

applyRoutes

+
+fun applyRoutes(k: KVServer): Unit +

Applies all defined routes to the given server.

+
+

bind

+
+fun <RET> bind(function: T.(Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
+fun <PAR, RET> bind(function: T.(PAR, Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
+fun <PAR1, PAR2, RET> bind(function: T.(PAR1, PAR2, Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
+fun <PAR1, PAR2, PAR3, RET> bind(function: T.(PAR1, PAR2, PAR3, Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
+fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: T.(PAR1, PAR2, PAR3, PAR4, Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit
+fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: T.(PAR1, PAR2, PAR3, PAR4, PAR5, Request?) -> Deferred<RET>, route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST): Unit +

Binds a given route with a function of the receiver.

+
+

call

+
+fun call(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit
+

getCalls

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

Returns the map of defined paths.

+
+

getParameter

+
+fun <T> getParameter(str: String?): T
+

Inherited Functions

+ + + + + + + +
+

getCalls

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

Returns the map of defined paths.

+
+

Companion Object Properties

+ + + + + + + +
+

LOG

+
+val LOG: <ERROR CLASS>
+ + -- cgit