nee-ctx-web-ktor
Module Contents
alltypes
Module Contents
interface ApplicationContextProvider<CTX, LOCAL>
abstract class BaseWebContextProvider<R, G : TxProvider<R, G>> : WebContextProvider<R, G>
object BasicAuth
class BasicAuthProvider<USERID, ROLE> : SecurityProvider<USERID, ROLE>
object DefaultErrorHandler : ErrorHandler
class EffectsInstance<R, G : TxProvider<R, G>>
typealias ErrorHandler = (Any) -> OutgoingContent
abstract class JDBCBasedWebContextProvider : BaseWebContextProvider<Connection, JDBCProvider>
data class WebContext<R, G : TxProvider<R, G>> : TxProvider<R, WebContext<R, G>>, SecurityProvider<User, UserRole>, ExecutionContextProvider, TraceProvider<WebContext<R, G>>, Logging
Module Contents
WebContext(jdbcProvider: TxProvider<R, G>, securityProvider: SecurityProvider<User, UserRole>, executionContextProvider: ExecutionContextProvider, errorHandler: ErrorHandler = DefaultErrorHandler, contextProvider: WebContextProvider<R, G>, traceProvider: TraceProvider<*>, applicationCall: ApplicationCall)
fun getConnection(): TxConnection<R>
fun getTrace(): TraceResource
suspend fun <E, A> serveMessage(msg: Out<E, A>): Unit
suspend fun <P> serveMessage(businessFunction: ANee<WebContext<R, G>, P, Any>, param: P): Unit
fun <P> serveText(businessFunction: ANee<WebContext<R, G>, P, String>, param: P): Unit
fun setConnectionState(newState: TxConnection<R>): WebContext<R, G>
fun setTrace(newState: TraceResource): WebContext<R, G>
interface WebContextProvider<R, G : TxProvider<R, G>>
Module Contents
open fun <E, P, A> async(func: () -> Nee<WebContext<R, G>, E, P, A>): Nee<WebContext<R, G>, Any, P, A>
abstract fun create(call: ApplicationCall): WebContext<R, G>
abstract fun fx(): EffectsInstance<R, G>
open fun healthCheck(): Route.() -> Unit
abstract fun jacksonMapper(): ObjectMapper
open fun monitoringApi(): Route.() -> Unit
open fun sysApi(): Route.() -> Unit
open fun userSecurityApi(): Route.() -> Unit
package dev.neeffect.nee.ctx.web
Module Contents
interface ApplicationContextProvider<CTX, LOCAL>
abstract class BaseWebContextProvider<R, G : TxProvider<R, G>> : WebContextProvider<R, G>
object BasicAuth
class BasicAuthProvider<USERID, ROLE> : SecurityProvider<USERID, ROLE>
object DefaultErrorHandler : ErrorHandler
class EffectsInstance<R, G : TxProvider<R, G>>
typealias ErrorHandler = (Any) -> OutgoingContent
abstract class JDBCBasedWebContextProvider : BaseWebContextProvider<Connection, JDBCProvider>
data class WebContext<R, G : TxProvider<R, G>> : TxProvider<R, WebContext<R, G>>, SecurityProvider<User, UserRole>, ExecutionContextProvider, TraceProvider<WebContext<R, G>>, Logging
Module Contents
WebContext(jdbcProvider: TxProvider<R, G>, securityProvider: SecurityProvider<User, UserRole>, executionContextProvider: ExecutionContextProvider, errorHandler: ErrorHandler = DefaultErrorHandler, contextProvider: WebContextProvider<R, G>, traceProvider: TraceProvider<*>, applicationCall: ApplicationCall)
fun getConnection(): TxConnection<R>
fun getTrace(): TraceResource
suspend fun <E, A> serveMessage(msg: Out<E, A>): Unit
suspend fun <P> serveMessage(businessFunction: ANee<WebContext<R, G>, P, Any>, param: P): Unit
fun <P> serveText(businessFunction: ANee<WebContext<R, G>, P, String>, param: P): Unit
fun setConnectionState(newState: TxConnection<R>): WebContext<R, G>
fun setTrace(newState: TraceResource): WebContext<R, G>
interface WebContextProvider<R, G : TxProvider<R, G>>
Module Contents
open fun <E, P, A> async(func: () -> Nee<WebContext<R, G>, E, P, A>): Nee<WebContext<R, G>, Any, P, A>
abstract fun create(call: ApplicationCall): WebContext<R, G>
abstract fun fx(): EffectsInstance<R, G>
open fun healthCheck(): Route.() -> Unit
abstract fun jacksonMapper(): ObjectMapper
open fun monitoringApi(): Route.() -> Unit
open fun sysApi(): Route.() -> Unit
open fun userSecurityApi(): Route.() -> Unit