From 4ffe1bee99a55e985bb71dacff3839263cb4316f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 3 Mar 2020 10:53:33 +0100 Subject: API Documentation for KVision 3.0.0 --- api/pl.treksoft.kvision.remote/index.html | 75 +++++++++++++++++-------------- 1 file changed, 41 insertions(+), 34 deletions(-) (limited to 'api/pl.treksoft.kvision.remote/index.html') diff --git a/api/pl.treksoft.kvision.remote/index.html b/api/pl.treksoft.kvision.remote/index.html index 09bda884..09d3f739 100644 --- a/api/pl.treksoft.kvision.remote/index.html +++ b/api/pl.treksoft.kvision.remote/index.html @@ -105,15 +105,6 @@ -

Profile

- - -actual data class Profile -

A user profile.

- - - -

RemoteAgent

@@ -141,17 +132,24 @@ -

WithPrincipal

+

WithContext

-interface WithPrincipal +interface WithContext + + + +

WithHttpSession

+ + +interface WithHttpSession -

WithProfile

+

WithPrincipal

-interface WithProfile +interface WithPrincipal @@ -162,6 +160,13 @@ +

WithSession

+ + +interface WithSession + + +

WithWebSession

@@ -174,6 +179,20 @@ interface WithWebSocketSession + + +

WithWsContext

+ + +interface WithWsContext + + + +

WithWsSession

+ + +interface WithWsSession +

Exceptions

@@ -211,15 +230,6 @@ -

Profile

- - -actual typealias Profile = <ERROR CLASS> -

A user profile.

- - - -

Transient

@@ -253,6 +263,13 @@ val injectorKey: <ERROR CLASS> + + +

KV_INJECTOR_KEY

+ + +const val KV_INJECTOR_KEY: String +

Functions

@@ -263,6 +280,7 @@

applyRoutes

+fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>, roles: Set<<ERROR CLASS>> = setOf()): Unit
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit

A function to generate routes based on definitions from the service manager.

@@ -290,10 +308,8 @@

kvisionInit

-fun <ERROR CLASS>.kvisionInit(): Unit -

Initialization function for Jooby server.

fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit -

Initialization function for Ktor server.

+

Initialization function for Javalin server.

@@ -315,15 +331,6 @@

A function to gather paths for spring security matchers.

- - -

withProfile

- - -suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP -

A helper extension function for processing with authenticated user profile.

- - -- cgit