open expect class JoobyServiceManager<T : Any> : ServiceManager
Multiplatform service manager for Jooby.
JoobyServiceManager(service: T)
Multiplatform service manager for Jooby. |
val calls: MutableMap<String, Pair<String, RpcHttpMethod>> |
|
var counter: Int |
|
val mapper: <ERROR CLASS> |
|
val routes: MutableList<KVServer.() -> Unit> |
|
val service: T |
fun applyRoutes(k: KVServer): Unit
Applies all defined routes to the given server. |
|
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. |
|
fun call(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit |
|
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
Returns the map of defined paths. |
|
fun <T> getParameter(str: String?): T |
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
Returns the map of defined paths. |
val LOG: <ERROR CLASS> |