jobs

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpJob

type AmqpJob struct {
	// contains filtered or unexported fields
}

func NewAmqpJob

func NewAmqpJob(deliveries <-chan amqp.Delivery, handler amqp_recipient.JobHandler, onFail amqp_recipient.OnHandlerFails) *AmqpJob

func (*AmqpJob) Run

func (job *AmqpJob) Run()

type CancelableAmqpJob

type CancelableAmqpJob struct {
	// contains filtered or unexported fields
}

func NewCancelableAmqpJob

func NewCancelableAmqpJob(ctx context.Context, deliveries <-chan amqp.Delivery, handler amqpRecipient.JobHandler, onFail amqpRecipient.OnHandlerFails) *CancelableAmqpJob

func (*CancelableAmqpJob) OnCancel

func (job *CancelableAmqpJob) OnCancel(fn func())

func (*CancelableAmqpJob) Run

func (job *CancelableAmqpJob) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL