Package io. kvision. remote
A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
Types
Credentials
Link copied to clipboard
Username and password credentials.
Http Method
Link copied to clipboard
Illegal Parameter Count Exception
Link copied to clipboard
class IllegalParameterCountException(actualParameterCount: Int, expectedParamterCount: Int) : RuntimeException
Content copied to clipboard
Json Rpc Request
Link copied to clipboard
Json Rpc Response
Link copied to clipboard
KVRemote Agent
Link copied to clipboard
open class KVRemoteAgent<T : Any>(serviceManager: KVServiceMgr<T>, requestFilter: RequestInit.() -> Unit?) : RemoteAgent
Content copied to clipboard
Client side agent for JSON-RPC remote calls.
KVService Binder
Link copied to clipboard
abstract class KVServiceBinder<T, RH, WH>(deSerializer: ObjectDeSerializer, routeNameGenerator: NameGenerator?)
Content copied to clipboard
Binds HTTP calls to kotlin functions
KVService Manager Js
Link copied to clipboard
KVService Mgr
Link copied to clipboard
Base interface for multiplatform service manager.
Login Service
Link copied to clipboard
Form login dispatcher.
Name Generator
Link copied to clipboard
Not Enum Type Exception
Link copied to clipboard
Not Standard Type Exception
Link copied to clipboard
Object De Serializer
Link copied to clipboard
interface ObjectDeSerializer
Content copied to clipboard
Remote Agent
Link copied to clipboard
open class RemoteAgent
Content copied to clipboard
Interface for client side agent for JSON-RPC remote calls.
Remote Data
Link copied to clipboard
Remote Filter
Link copied to clipboard
Remote Option
Link copied to clipboard
Remote Sorter
Link copied to clipboard
Response Body Type
Link copied to clipboard
HTTP response body types.
Route Map Entry
Link copied to clipboard
data class RouteMapEntry<T>(method: HttpMethod, path: String, handler: T)
Content copied to clipboard
Route Map Registry
Link copied to clipboard
Stores a mapping from an HTTP-method+path to a handler
Security Exception
Link copied to clipboard
A security exception.
Security Mgr
Link copied to clipboard
abstract class SecurityMgr
Content copied to clipboard
Form login dispatcher.
Service Exception
Link copied to clipboard
Socket Closed Exception
Link copied to clipboard
Websocket closed exception class.
Functions
create Name Generator
Link copied to clipboard
create Route Map Registry
Link copied to clipboard
Create a default implementation of @see RouteMapRegistry
deserialize
Link copied to clipboard
get Web Socket Url
Link copied to clipboard
Creates a websocket URL from current window.location and given path.
handle Websocket Connection
Link copied to clipboard
suspend fun <T, OBJECTS_IN, OBJECTS_OUT> handleWebsocketConnection(deSerializer: ObjectDeSerializer, rawIn: ReceiveChannel<String>, rawOut: SendChannel<String>, serializerIn: KSerializer<OBJECTS_IN>, serializerOut: KSerializer<OBJECTS_OUT>, service: T, function: suspend T.(ReceiveChannel<OBJECTS_IN>, SendChannel<OBJECTS_OUT>) -> Unit)
Content copied to clipboard
Convenience function for cases were the raw channels work with strings. See the overloaded method for details.
suspend fun <T, RAW_IN, RAW_OUT, OBJECTS_IN, OBJECTS_OUT> handleWebsocketConnection(deSerializer: ObjectDeSerializer, rawIn: ReceiveChannel<RAW_IN>, rawInToText: (RAW_IN) -> String?, rawOut: SendChannel<RAW_OUT>, rawOutFromText: (String) -> RAW_OUT, serializerIn: KSerializer<OBJECTS_IN>, serializerOut: KSerializer<OBJECTS_OUT>, service: T, function: suspend T.(ReceiveChannel<OBJECTS_IN>, SendChannel<OBJECTS_OUT>) -> Unit)
Content copied to clipboard
kotlinx Object De Serializer
Link copied to clipboard
require Parameter Count Equal To
Link copied to clipboard
fun requireParameterCountEqualTo(actualParameterCount: Int, expectedParamterCount: Int)
Content copied to clipboard
fun requireParameterCountEqualTo(params: Collection<*>, expectedParameterCount: Int)
Content copied to clipboard
serialize Non Null
Link copied to clipboard
serialize Nullable
Link copied to clipboard