KVService Binder
abstract class KVServiceBinder<out T, RH, WH>(routeNameGenerator: NameGenerator? = null)
Content copied to clipboard
Binds HTTP calls to kotlin functions
Parameters
T
the receiver of bound functions
RH
the platform specific request handler
WH
the platform specific websocket handler
Constructors
Functions
Link copied to clipboard
inline fun <PAR1 : Any, PAR2 : Any> bind(noinline function: suspend T.(<Error class: unknown class><PAR1>, <Error class: unknown class><PAR2>) -> Unit, route: String? = null)
Content copied to clipboard
Binds a given web socket connection with a function of the receiver.
inline fun <RET> bind( noinline function: suspend T.() -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR, RET> bind( noinline function: suspend T.(PAR) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, RET> bind( noinline function: suspend T.(PAR1, PAR2) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, RET> bind( noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, PAR4, RET> bind( noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind( noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
inline fun <PAR1, PAR2, PAR3, PAR4, PAR5, PAR6, RET> bind( noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET, method: <Error class: unknown class>, route: String? = null)
Content copied to clipboard
Binds a given route with a function of the receiver.
Link copied to clipboard
inline fun <RET> bindTabulatorRemote(noinline function: suspend T.(Int?, Int?, List<<Error class: unknown class>>?, List<<Error class: unknown class>>?, String?) -> <Error class: unknown class><RET>, route: String?)
Content copied to clipboard
Binds a given function of the receiver as a tabulator component source
Link copied to clipboard
fun <REQ, RES> bindWebsocket( route: String? = null, function: suspend T.(<Error class: unknown class><REQ>, <Error class: unknown class><RES>) -> Unit, requestSerializerFactory: () -> <Error class: unknown class><REQ>, responseSerializerFactory: () -> <Error class: unknown class><RES>)
Content copied to clipboard
Binds a given web socket connection with a function of the receiver.
Link copied to clipboard
Link copied to clipboard
abstract fun <REQ, RES> createWebsocketHandler( function: suspend T.(<Error class: unknown class><REQ>, <Error class: unknown class><RES>) -> Unit, requestSerializerFactory: () -> <Error class: unknown class><REQ>, responseSerializerFactory: () -> <Error class: unknown class><RES>): WH
Content copied to clipboard