Package io. kvision. remote
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
Types
KVService Manager
Link copied to clipboard
Multiplatform service manager.
Request Handler
Link copied to clipboard
typealias RequestHandler = suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit
Content copied to clipboard
Websocket Handler
Link copied to clipboard
Functions
apply Routes
Link copied to clipboard
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>)
Content copied to clipboard
A function to generate routes based on definitions from the service manager.
init Static Resources
Link copied to clipboard
Initialize default static resources for Ktor server.
kvision Init
Link copied to clipboard
fun <ERROR CLASS>.kvisionInit(initStaticResources: Boolean, vararg modules: Module): <ERROR CLASS>
Content copied to clipboard
fun <ERROR CLASS>.kvisionInit(initStaticResources: Boolean, json: <ERROR CLASS>, vararg modules: Module): <ERROR CLASS>
Content copied to clipboard
Initialization function for Ktor server.
fun <ERROR CLASS>.kvisionInit(json: <ERROR CLASS>, vararg modules: Module): <ERROR CLASS>
Content copied to clipboard
Initialization function for Ktor server with custom JsonSerializer.