com.lightningkite.lightningserver.externalintegration.ExternalAsyncTaskRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
@file:UseContextualSerialization(Instant::class)
package com.lightningkite.lightningserver.externalintegration
import com.lightningkite.lightningdb.AdminTableColumns
import com.lightningkite.lightningdb.GenerateDataClassPaths
import com.lightningkite.lightningdb.HasId
import com.lightningkite.lightningdb.Index
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseContextualSerialization
import java.time.Instant
@GenerateDataClassPaths
@Serializable
@AdminTableColumns(["_id", "action", "createdAt", "result", "processingError"])
data class ExternalAsyncTaskRequest(
override val _id: String,
@Index val ourData: String,
val expiresAt: Instant,
val createdAt: Instant = Instant.now(),
val response: String? = null,
val result: String? = null,
val action: String? = null,
val lastAttempt: Instant = Instant.EPOCH,
val processingError: String? = null,
) : HasId