Documentation ¶
Index ¶
- Variables
- func CronSpec() *errors.Error
- func CronSpecFormat(format string, args ...any) *errors.Error
- func Database() *errors.Error
- func DatabaseFormat(format string, args ...any) *errors.Error
- func DeleteNotDisabledTask() *errors.Error
- func DeleteNotDisabledTaskFormat(format string, args ...any) *errors.Error
- func DeleteNotDisabledWorker() *errors.Error
- func DeleteNotDisabledWorkerFormat(format string, args ...any) *errors.Error
- func DisableCron() *errors.Error
- func DisableCronFormat(format string, args ...any) *errors.Error
- func DisableNotEnableTask() *errors.Error
- func DisableNotEnableTaskFormat(format string, args ...any) *errors.Error
- func DisableNotEnableWorker() *errors.Error
- func DisableNotEnableWorkerFormat(format string, args ...any) *errors.Error
- func EnableCron() *errors.Error
- func EnableCronFormat(format string, args ...any) *errors.Error
- func EnableNotDisabledTask() *errors.Error
- func EnableNotDisabledTaskFormat(format string, args ...any) *errors.Error
- func EnableNotDisabledWorker() *errors.Error
- func EnableNotDisabledWorkerFormat(format string, args ...any) *errors.Error
- func ExecTaskFail() *errors.Error
- func ExecTaskFailFormat(format string, args ...any) *errors.Error
- func IsCronSpec(err error) bool
- func IsDatabase(err error) bool
- func IsDeleteNotDisabledTask(err error) bool
- func IsDeleteNotDisabledWorker(err error) bool
- func IsDisableCron(err error) bool
- func IsDisableNotEnableTask(err error) bool
- func IsDisableNotEnableWorker(err error) bool
- func IsEnableCron(err error) bool
- func IsEnableNotDisabledTask(err error) bool
- func IsEnableNotDisabledWorker(err error) bool
- func IsExecTaskFail(err error) bool
- func IsNotFound(err error) bool
- func IsNotSupportTaskType(err error) bool
- func IsTransform(err error) bool
- func IsUpdateNotEnableTask(err error) bool
- func IsWorkerNotAvailable(err error) bool
- func NotFound() *errors.Error
- func NotFoundFormat(format string, args ...any) *errors.Error
- func NotSupportTaskType() *errors.Error
- func NotSupportTaskTypeFormat(format string, args ...any) *errors.Error
- func Transform() *errors.Error
- func TransformFormat(format string, args ...any) *errors.Error
- func UpdateNotEnableTask() *errors.Error
- func UpdateNotEnableTaskFormat(format string, args ...any) *errors.Error
- func WorkerNotAvailable() *errors.Error
- func WorkerNotAvailableFormat(format string, args ...any) *errors.Error
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReason_name = map[int32]string{ 0: "NotFound", 1: "Database", 2: "Transform", 3: "DeleteNotDisabledWorker", 4: "EnableNotDisabledWorker", 5: "DisableNotEnableWorker", 6: "CronSpec", 7: "EnableCron", 8: "DisableCron", 9: "DeleteNotDisabledTask", 10: "EnableNotDisabledTask", 11: "DisableNotEnableTask", 12: "UpdateNotEnableTask", 13: "NotSupportTaskType", 14: "ExecTaskFail", 15: "WorkerNotAvailable", } ErrorReason_value = map[string]int32{ "NotFound": 0, "Database": 1, "Transform": 2, "DeleteNotDisabledWorker": 3, "EnableNotDisabledWorker": 4, "DisableNotEnableWorker": 5, "CronSpec": 6, "EnableCron": 7, "DisableCron": 8, "DeleteNotDisabledTask": 9, "EnableNotDisabledTask": 10, "DisableNotEnableTask": 11, "UpdateNotEnableTask": 12, "NotSupportTaskType": 13, "ExecTaskFail": 14, "WorkerNotAvailable": 15, } )
Enum value maps for ErrorReason.
View Source
var File_cron_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func DeleteNotDisabledTask ¶
func DeleteNotDisabledWorker ¶
func DisableCron ¶
func DisableNotEnableTask ¶
func DisableNotEnableWorker ¶
func EnableCron ¶
func EnableNotDisabledTask ¶
func EnableNotDisabledWorker ¶
func ExecTaskFail ¶
func IsCronSpec ¶
func IsDatabase ¶
func IsDeleteNotDisabledTask ¶
func IsDisableCron ¶
func IsDisableNotEnableTask ¶
func IsEnableCron ¶
func IsEnableNotDisabledTask ¶
func IsExecTaskFail ¶
func IsNotFound ¶
func IsNotSupportTaskType ¶
func IsTransform ¶
func IsUpdateNotEnableTask ¶
func IsWorkerNotAvailable ¶
func NotSupportTaskType ¶
func UpdateNotEnableTask ¶
func WorkerNotAvailable ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_NotFound ErrorReason = 0 ErrorReason_Database ErrorReason = 1 ErrorReason_Transform ErrorReason = 2 ErrorReason_DeleteNotDisabledWorker ErrorReason = 3 ErrorReason_EnableNotDisabledWorker ErrorReason = 4 ErrorReason_DisableNotEnableWorker ErrorReason = 5 ErrorReason_CronSpec ErrorReason = 6 ErrorReason_EnableCron ErrorReason = 7 ErrorReason_DisableCron ErrorReason = 8 ErrorReason_DeleteNotDisabledTask ErrorReason = 9 ErrorReason_EnableNotDisabledTask ErrorReason = 10 ErrorReason_DisableNotEnableTask ErrorReason = 11 ErrorReason_UpdateNotEnableTask ErrorReason = 12 ErrorReason_NotSupportTaskType ErrorReason = 13 ErrorReason_ExecTaskFail ErrorReason = 14 ErrorReason_WorkerNotAvailable ErrorReason = 15 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.