A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
open class CallAgent
An agent responsible for remote calls. |
|
data class Credentials
Username and password credentials. |
|
object JSON
JSON utility functions |
|
open class KVHandler |
|
open class KVRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls. |
|
open class KVRouterConfiguration |
|
open actual class KVServiceManager<T : Any>
Multiplatform service manager. |
|
open class KVWebSocketConfig |
|
class KVWebSocketHandler |
|
class LoginService
Form login dispatcher. |
|
external class Object
JavaScript Object type |
|
actual data class Profile
A user profile. |
|
interface RemoteAgent
Interface for client side agent for JSON-RPC remote calls. |
|
abstract class SecurityMgr
Form login dispatcher. |
|
class Socket
A websocket client implementation. |
|
interface WithPrincipal |
|
interface WithProfile |
|
interface WithRequest |
|
interface WithWebSession |
|
interface WithWebSocketSession |
class SecurityException : Exception
A security exception. |
|
class SocketClosedException : Throwable
Websocket closed exception class. |
actual typealias Id = Id |
|
actual typealias Profile = <ERROR CLASS>
A user profile. |
|
actual typealias Transient = Transient |
const val HTTP_UNAUTHORIZED: Int
HTTP status unauthorized (401). |
|
val <ERROR CLASS>.injector: <ERROR CLASS> |
|
val injectorKey: <ERROR CLASS> |
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
A function to generate routes based on definitions from the service manager. |
|
fun getServerWebExchangeMatcher(vararg services: KVServiceManager<*>): Array<<ERROR CLASS>>
A function to gather paths for spring security matchers. |
|
fun getWebSocketUrl(url: String): String
Creates a websocket URL from current window.location and given path. |
|
fun <ERROR CLASS>.kvisionInit(): Unit
Initialization function for Jooby server. fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit
Initialization function for Ktor server. |
|
fun obj(init: dynamic.() -> Unit): dynamic
Helper function for creating JavaScript objects. |
|
fun <ERROR CLASS>.serviceMatchers(vararg services: KVServiceManager<*>): <ERROR CLASS> fun serviceMatchers(vararg services: KVServiceManager<*>): <ERROR CLASS>
A function to gather paths for spring security matchers. |
|
suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP
A helper extension function for processing with authenticated user profile. |