A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
open class CallAgent
An agent responsible for remote calls. |
|
class CallModule |
|
data class Credentials
Username and password credentials. |
|
object JSON
JSON utility functions |
|
open class KVController |
|
open class KVRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls. |
|
open actual class KVServiceManager<T : Any>
Multiplatform service manager. |
|
class LoginService
Form login dispatcher. |
|
class MainModule |
|
external class Object
JavaScript Object type |
|
data actual class Profile
A user profile. |
|
interface RemoteAgent
Interface for client side agent for JSON-RPC remote calls. |
|
abstract class SecurityMgr
Form login dispatcher. |
class SecurityException : Exception
A security exception. |
actual typealias Profile = <ERROR CLASS>
A user profile. |
const val HTTP_UNAUTHORIZED: Int
HTTP status unauthorized (401). |
|
val <ERROR CLASS>.injector: <ERROR CLASS> |
|
val injectorKey: <ERROR CLASS> |
fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit |
|
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit |
|
fun <ERROR CLASS>.kvisionInit(): Unit fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit |
|
fun obj(init: dynamic.() -> Unit): dynamic
Helper function for creating JavaScript objects. |
|
suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP
A helper extension function for processing with authenticated user profile. |
|
fun <ERROR CLASS>.writeJSON(json: String): Unit |