Documentation ¶
Index ¶
- Variables
- func CancelTaskError(args ...any) *errors.Error
- func CreateError(args ...any) *errors.Error
- func CronSpecError(args ...any) *errors.Error
- func DatabaseError(args ...any) *errors.Error
- func DeleteError(args ...any) *errors.Error
- func DeleteNotDisabledTaskError(args ...any) *errors.Error
- func DeleteNotDisabledWorkerError(args ...any) *errors.Error
- func DeleteTrashError(args ...any) *errors.Error
- func DisableCronError(args ...any) *errors.Error
- func EnableCronError(args ...any) *errors.Error
- func ExecTaskFailError(args ...any) *errors.Error
- func ExportError(args ...any) *errors.Error
- func GetError(args ...any) *errors.Error
- func GetTrashError(args ...any) *errors.Error
- func ImportError(args ...any) *errors.Error
- func IsCancelTaskError(err error) bool
- func IsCreateError(err error) bool
- func IsCronSpecError(err error) bool
- func IsDatabaseError(err error) bool
- func IsDeleteError(err error) bool
- func IsDeleteNotDisabledTaskError(err error) bool
- func IsDeleteNotDisabledWorkerError(err error) bool
- func IsDeleteTrashError(err error) bool
- func IsDisableCronError(err error) bool
- func IsEnableCronError(err error) bool
- func IsExecTaskFailError(err error) bool
- func IsExportError(err error) bool
- func IsGetError(err error) bool
- func IsGetTrashError(err error) bool
- func IsImportError(err error) bool
- func IsListError(err error) bool
- func IsListTrashError(err error) bool
- func IsNotSupportTaskTypeError(err error) bool
- func IsParamsError(err error) bool
- func IsRevertTrashError(err error) bool
- func IsTransformError(err error) bool
- func IsUpdateError(err error) bool
- func IsUpdateNotDisableTaskError(err error) bool
- func IsWorkerNotAvailableError(err error) bool
- func ListError(args ...any) *errors.Error
- func ListTrashError(args ...any) *errors.Error
- func NotSupportTaskTypeError(args ...any) *errors.Error
- func ParamsError(args ...any) *errors.Error
- func RevertTrashError(args ...any) *errors.Error
- func TransformError(args ...any) *errors.Error
- func UpdateError(args ...any) *errors.Error
- func UpdateNotDisableTaskError(args ...any) *errors.Error
- func WorkerNotAvailableError(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: "ParamsError", 1: "DatabaseError", 2: "TransformError", 3: "GetError", 4: "ListError", 5: "CreateError", 6: "ImportError", 7: "ExportError", 8: "UpdateError", 9: "DeleteError", 10: "GetTrashError", 11: "ListTrashError", 12: "DeleteTrashError", 13: "RevertTrashError", 14: "DeleteNotDisabledWorkerError", 16: "CronSpecError", 17: "EnableCronError", 18: "DisableCronError", 19: "DeleteNotDisabledTaskError", 20: "UpdateNotDisableTaskError", 21: "NotSupportTaskTypeError", 22: "ExecTaskFailError", 23: "WorkerNotAvailableError", 24: "CancelTaskError", } ErrorReason_value = map[string]int32{ "ParamsError": 0, "DatabaseError": 1, "TransformError": 2, "GetError": 3, "ListError": 4, "CreateError": 5, "ImportError": 6, "ExportError": 7, "UpdateError": 8, "DeleteError": 9, "GetTrashError": 10, "ListTrashError": 11, "DeleteTrashError": 12, "RevertTrashError": 13, "DeleteNotDisabledWorkerError": 14, "CronSpecError": 16, "EnableCronError": 17, "DisableCronError": 18, "DeleteNotDisabledTaskError": 19, "UpdateNotDisableTaskError": 20, "NotSupportTaskTypeError": 21, "ExecTaskFailError": 22, "WorkerNotAvailableError": 23, "CancelTaskError": 24, } )
Enum value maps for ErrorReason.
View Source
var File_api_cron_errors_cron_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func CancelTaskError ¶
func CreateError ¶
func CronSpecError ¶
func DatabaseError ¶
func DeleteError ¶
func DeleteTrashError ¶
func DisableCronError ¶
func EnableCronError ¶
func ExecTaskFailError ¶
func ExportError ¶
func GetTrashError ¶
func ImportError ¶
func IsCancelTaskError ¶
func IsCreateError ¶
func IsCronSpecError ¶
func IsDatabaseError ¶
func IsDeleteError ¶
func IsDeleteTrashError ¶
func IsDisableCronError ¶
func IsEnableCronError ¶
func IsExecTaskFailError ¶
func IsExportError ¶
func IsGetError ¶
func IsGetTrashError ¶
func IsImportError ¶
func IsListError ¶
func IsListTrashError ¶
func IsParamsError ¶
func IsRevertTrashError ¶
func IsTransformError ¶
func IsUpdateError ¶
func ListTrashError ¶
func NotSupportTaskTypeError ¶
func ParamsError ¶
func RevertTrashError ¶
func TransformError ¶
func UpdateError ¶
func WorkerNotAvailableError ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_ParamsError ErrorReason = 0 ErrorReason_DatabaseError ErrorReason = 1 ErrorReason_TransformError ErrorReason = 2 ErrorReason_GetError ErrorReason = 3 ErrorReason_ListError ErrorReason = 4 ErrorReason_CreateError ErrorReason = 5 ErrorReason_ImportError ErrorReason = 6 ErrorReason_ExportError ErrorReason = 7 ErrorReason_UpdateError ErrorReason = 8 ErrorReason_DeleteError ErrorReason = 9 ErrorReason_GetTrashError ErrorReason = 10 ErrorReason_ListTrashError ErrorReason = 11 ErrorReason_DeleteTrashError ErrorReason = 12 ErrorReason_RevertTrashError ErrorReason = 13 ErrorReason_DeleteNotDisabledWorkerError ErrorReason = 14 ErrorReason_CronSpecError ErrorReason = 16 ErrorReason_EnableCronError ErrorReason = 17 ErrorReason_DisableCronError ErrorReason = 18 ErrorReason_DeleteNotDisabledTaskError ErrorReason = 19 ErrorReason_UpdateNotDisableTaskError ErrorReason = 20 ErrorReason_NotSupportTaskTypeError ErrorReason = 21 ErrorReason_ExecTaskFailError ErrorReason = 22 ErrorReason_WorkerNotAvailableError ErrorReason = 23 ErrorReason_CancelTaskError ErrorReason = 24 )
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.