Versions in this module Expand all Collapse all v0 v0.1.0 Feb 27, 2025 Changes in this version + var ErrAMQPConnectionInvalid = errors.New("AMQP connection string is invalid") + var ErrAMQPJobNotDefined = errors.New("AMQP job must be defined") + var ErrAuthMethodNotDefined = errors.New("auth method must be defined") + var ErrEmptyBearerToken = errors.New("bearer token must be defined for bearer auth") + var ErrEmptyExchange = errors.New("exchange must be defined for AMQP jobs") + var ErrEmptyHTTPJobMethod = errors.New("HTTP job method cannot be empty") + var ErrEmptyHTTPJobURL = errors.New("HTTP job URL cannot be empty") + var ErrEmptyPassword = errors.New("password must be defined for basic auth") + var ErrEmptyRoutingKey = errors.New("routing key must be defined for AMQP jobs") + var ErrEmptyUsername = errors.New("username must be defined for basic auth") + var ErrHTTPJobNotDefined = errors.New("HTTP job must be defined") + var ErrInvalidAuthType = errors.New("auth type must be either none, basic, or bearer") + var ErrInvalidBodyEncoding = errors.New("invalid body encoding") + var ErrInvalidCronSchedule = errors.New("invalid cron schedule") + var ErrInvalidExecuteAt = errors.New("execute_at must be in the future") + var ErrInvalidJobFields = errors.New("job cannot have both HTTP and AMQP fields defined") + var ErrInvalidJobID = errors.New("job ID must be a valid UUID") + var ErrInvalidJobSchedule = errors.New("job must have only one of execute_at and cron_schedule defined") + var ErrInvalidJobStatus = errors.New("job status must be either PENDING, SCHEDULED, SUCCESSFUL, or FAILED") + var ErrInvalidJobType = errors.New("job type must be either HTTP or AMQP") + var ErrInvalidResponseCode = errors.New("invalid response code") + var ErrJobNotFound = errors.New("job not found") + type CustomError struct + Code int + Err error + func ToCustomJobError(err error) *CustomError + func (e *CustomError) Error() string