Package-level declarations

Types

Link copied to clipboard
data class ResourceBytes(val bytes: ByteString)
Link copied to clipboard

Server-side configuration implementation.

Link copied to clipboard
class ServerEnvironment(configuration: Configuration, storage: Storage, httpClient: HttpClient, secureAreaProvider: SecureAreaProvider<SecureArea>, secureAreaRepository: SecureAreaRepository, val notifications: RpcNotificationsLocalPoll, val cipher: SimpleCipher) : BackendEnvironment

BackendEnvironment implementation for the server.

Properties

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

Functions

Link copied to clipboard

Returns admin password.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Application.installServerEnvironment(serverEnvironment: Deferred<ServerEnvironment>)

Installs an interceptor that injects ServerEnvironment in the coroutine context for all other request handlers.

Link copied to clipboard
suspend fun persistentServerKey(length: Int = 16, name: String = "default", storage: Storage? = null): ByteString

Loads/creates a random sequence of bytes that can be used as a symmetric key that does not change across server invocations.

Link copied to clipboard
fun runServer(args: Array<String>, needAdminPassword: Boolean = false, checkConfiguration: (ServerConfiguration) -> Unit = {}, applicationConfigurationAction: Application.(env: Deferred<ServerEnvironment>) -> Unit)

Initializes ServerEnvironment and performs common initialization, then runs server-specific set-up (like request routing) and launches the server.

Link copied to clipboard
fun Routing.serveResources()

Serves static resources from www resource folder.