open actual class KVServiceManager<T : Any>
Multiplatform service manager.
KVServiceManager(serviceClass: KClass<T>)
Multiplatform service manager. |
val calls: MutableMap<String, Pair<String, HttpMethod>> |
|
var counter: Int |
|
val deleteRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> |
|
val getRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> |
|
val mapper: <ERROR CLASS> |
|
val optionsRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> |
|
val postRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> |
|
val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> |
|
val routes: MutableList<<ERROR CLASS>.() -> Unit> |
|
val serviceClass: KClass<T> |
fun addRoute(method: HttpMethod, path: String, handler: suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit): Unit fun addRoute(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit |
|
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 |
|
fun call(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): <ERROR CLASS>.() -> Unit |
|
fun getCalls(): Map<String, Pair<String, HttpMethod>>
Returns the map of defined paths. |
|
fun <T> getParameter(str: String?): T |
val LOG: <ERROR CLASS> |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |