Package-level declarations

Types

Link copied to clipboard
@Serializable
sealed class Action

Sealed class representing different types of actions.

Link copied to clipboard
@Serializable
data class ErrorLog(val planId: UUID, val error: String, val type: ErrorLogType, val timestamp: Long)

Data class representing an error log.

Link copied to clipboard
@Serializable
sealed class ErrorLogType

Sealed class representing different types of error logs.

Link copied to clipboard
@Serializable
sealed class ExecutorResult

Sealed class representing the result of an executor's operation.

Link copied to clipboard
@Serializable
data class Hook(val maxRetry: Int = 3, val trigger: Trigger, val action: Action)

Data class representing a hook that triggers an action.

Link copied to clipboard
@Serializable
data class Plan(val id: UUID, val userId: UUID, val description: String, val periodTime: String, val type: PlanType, val status: PlanStatus, val maxFailureRetry: Int, val action: Action, val hook: List<Hook>, val parentPlanId: UUID?, val createdAt: Long, val updatedAt: Long)

Data class representing a plan.

Link copied to clipboard
@Serializable
sealed class PlanType

Sealed class representing the type of plan.

Link copied to clipboard
@Serializable
data class Task(val id: UUID, val planId: UUID, val partitionKey: Int, val status: TaskStatus, val createdAt: Long, val executedAt: Long?, val nextExecutionAt: Long?)

Data class representing a task.

Link copied to clipboard
@Serializable
data class User(val id: UUID, val name: String, val createdAt: Long)

Data class representing a user.