Documentation ¶
Index ¶
- Variables
- type Backend
- func (b Backend) ClearJob(jobID string) error
- func (b *Backend) Close() (err error)
- func (b Backend) FailJob(job *wingman.InternalJob) error
- func (b Backend) FailedJobs() uint64
- func (b Backend) IncFailedJobs()
- func (b Backend) IncSuccessfulJobs()
- func (b Backend) LockJob(job *wingman.InternalJob) (wingman.LockID, error)
- func (b Backend) Peek(queue string) (*wingman.InternalJob, error)
- func (b Backend) PopJob(ctx context.Context, queue string) (*wingman.InternalJob, error)
- func (b Backend) ProcessJob(job *wingman.InternalJob) error
- func (b Backend) PushInternalJob(job *wingman.InternalJob) error
- func (b Backend) PushJob(job wingman.Job) error
- func (b Backend) ReleaseJob(job *wingman.InternalJob) error
- func (b Backend) Size(queue string) uint64
- func (b Backend) SuccessfulJobs() uint64
- type Config
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCouldNotLock = errors.New("could not lock job")
)
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { *redis.Client // contains filtered or unexported fields }
func (Backend) FailedJobs ¶ added in v0.2.1
func (Backend) IncFailedJobs ¶ added in v0.2.1
func (b Backend) IncFailedJobs()
func (Backend) IncSuccessfulJobs ¶ added in v0.2.1
func (b Backend) IncSuccessfulJobs()
func (Backend) ProcessJob ¶
func (b Backend) ProcessJob(job *wingman.InternalJob) error
func (Backend) PushInternalJob ¶ added in v0.6.0
func (b Backend) PushInternalJob(job *wingman.InternalJob) error
func (Backend) ReleaseJob ¶ added in v0.2.3
func (b Backend) ReleaseJob(job *wingman.InternalJob) error
func (Backend) SuccessfulJobs ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.