KtorApplication

abstract class KtorApplication(scope: InjectionScope, val appName: String? = null) : TegralService

Superclass for Ktor applications that use Tegral Web Application.

Constructors

Link copied to clipboard
constructor(scope: InjectionScope, appName: String? = null)

Functions

Link copied to clipboard
open suspend override fun start()
Link copied to clipboard
open suspend override fun stop()

Properties

Link copied to clipboard
val appName: String? = null

The name of this application. Modules are only installed if their KtorModule.restrictToAppName matches this value. By default, both appName and KtorModule.restrictToAppName are set to null. null is just the default value and does not have any specific meaning (it does NOT mean "put this module everywhere").

Link copied to clipboard
abstract val settings: KtorApplicationSettings<*, *>

Settings used for building the application. These are the same as the ones provided as parameters to Ktor's embeddedServer function.