open actual class KVServiceManager<T : Any>
Multiplatform service manager.
KVServiceManager(serviceClass: KClass<T>)
Multiplatform service manager. |
val calls: MutableMap<String, Pair<String, RpcHttpMethod>> |
|
var counter: Int |
|
val deleteRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val mapper: <ERROR CLASS> |
|
val optionsRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val postRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val putRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> |
|
val routes: MutableList<KVServer.() -> Unit> |
|
val serviceClass: KClass<T> |
fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit |
|
actual fun applyRoutes(k: KVServer): Unit
Applies all defined routes to the given server. Not used on the js platform. |
|
actual fun <RET> bind(function: suspend T.() -> RET, route: String?, method: RpcHttpMethod): Unit actual fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, route: String?, method: RpcHttpMethod): Unit actual fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, route: String?, method: RpcHttpMethod): Unit actual fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, route: String?, method: RpcHttpMethod): Unit actual fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, route: String?, method: RpcHttpMethod): Unit actual fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, route: String?, method: RpcHttpMethod): 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 |
|
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 |
val LOG: <ERROR CLASS> |