ServerEnvironment

class ServerEnvironment(configuration: Configuration, storage: Storage, httpClient: HttpClient, secureAreaProvider: SecureAreaProvider<SecureArea>, val notifications: RpcNotificationsLocalPoll, val cipher: SimpleCipher) : BackendEnvironment

BackendEnvironment implementation for the server.

Constructors

Link copied to clipboard
constructor(configuration: Configuration, storage: Storage, httpClient: HttpClient, secureAreaProvider: SecureAreaProvider<SecureArea>, notifications: RpcNotificationsLocalPoll, cipher: SimpleCipher)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <ResourceT : Any> BackendEnvironment.cache(clazz: KClass<ResourceT>, key: Any = "", factory: suspend (Configuration, Resources) -> ResourceT): ResourceT

Lazily create and memoize an object that is defined by the given class and a key.

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Link copied to clipboard
open override fun <T : Any> getInterface(clazz: KClass<T>): T?
Link copied to clipboard
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext