Package guru.zoroark.tegral.web.appdefaults

Types

Link copied to clipboard
object AppDefaultsFeature : ConfigurableFeature

Feature for Tegral AppDefaults. Adds related services to the environment.

Link copied to clipboard
class DefaultAppDefaultsModule : DefaultsModule

Implementation of DefaultsModule for the default "primary" KtorApplication (i.e. the application with name null)

Link copied to clipboard
open class DefaultKtorApplication(scope: InjectionScope) : KtorApplication

A basic implementation of KtorApplication that uses sane defaults.

Link copied to clipboard
abstract class DefaultsModule(appName: String?) : KtorModule

Abstract module that applies the AppDefaults configuration for Ktor applications.

Link copied to clipboard
class KeepAliveService : TegralService

A simple service that keeps the JVM running.

Link copied to clipboard
class ShutdownHookService(scope: InjectionScope) : TegralService

A service that automatically calls env.services.stopAll() on the environment when a shutdown hook is received from the JVM.

Link copied to clipboard
data class TegralConfigurationContainer(val tegral: TegralConfig) : RootConfig

The default configuration object for tegral.toml files.

Functions

Link copied to clipboard
fun applyLoggingOverrides()

Applies sensible, default settings for logging. Should only be used to get a "base" configuration on top of Logback. Do not use this if you have your own logback.xml file.

Link copied to clipboard
fun ObjectMapper.defaultTegralConfiguration()

Applies the AppDefaults configuration for Jackson. This configuration simply