Package-level declarations

Properties

Link copied to clipboard
internal const val CACHE_ROOT_DICTIONARY: String
Link copied to clipboard
internal val TimeZone.Companion.CST: TimeZone

Central Standard Time -> CST, conforms to ISO 8601:2004, same as UTC+8 LifeMark develop on China, using Beijing time zone as same as Asia/Shanghai. Is Asia/Shanghai

Link copied to clipboard
internal val Clock.Companion.ISO_ZERO: Instant
internal val LocalDateTime.Companion.ISO_ZERO: LocalDateTime

Get the time of 1970-01-01T00:00:00Z

Link copied to clipboard
internal const val ISO_ZERO_DATETIME: String
Link copied to clipboard
internal val DateTimeFormat.Companion.READABLE_FORMAT: DateTimeFormat<DateTimeComponents>

Format for better read effective.

Link copied to clipboard
internal const val VERSION: String

Server Application Version

Functions

Link copied to clipboard
Link copied to clipboard
fun <T> String.isNotEmptyOrNull(notEmpty: (it: String) -> T): T?
Link copied to clipboard
internal fun isValidPathParameter(param: String): Boolean
Link copied to clipboard
internal fun lock(lock: ReentrantLock, block: () -> Unit)

The block will run in with the reentrant lock.

Link copied to clipboard
inline suspend fun <T : Any> ApplicationCall.respondRefiled(builder: ResponseData.ResponseBuilder<T>.() -> Unit)
inline suspend fun <T : Any> ApplicationCall.respondRefiled(status: HttpStatusCode, main: T)
inline suspend fun <T : Any> ApplicationCall.respondRefiled(status: HttpStatusCode, error: CodableException?, main: T)
inline suspend fun <T : Any> ApplicationCall.respondRefiled(status: HttpStatusCode, quota: ResponseData.Quota?, error: CodableException?, main: T?)
Link copied to clipboard
Link copied to clipboard

Convert the exception to a multi-line string with stack trace.

Link copied to clipboard
fun Instant.toReadableString(): String

Format: yyyy.MM.dd'T'HH:mm:ss

Link copied to clipboard
internal fun ReentrantLock.withLock(block: () -> Unit)

The block will run in with the reentrant lock.