task

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MPL-2.0 Imports: 20 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeliveryAttemptFailed = errors.New("Error sending event")

Functions

func CreateTask

func CreateTask(name convoy.TaskName, group datastore.Group, handler interface{}) *taskq.Task

func CreateTasks

func CreateTasks(groupRepo datastore.GroupRepository, handler interface{}) error

func ProcessDeadLetters

func ProcessDeadLetters(job *queue.Job)

func ProcessEventDelivery

func ProcessEventDelivery(appRepo datastore.ApplicationRepository, eventDeliveryRepo datastore.EventDeliveryRepository, groupRepo datastore.GroupRepository, rateLimiter limiter.RateLimiter) func(*queue.Job) error

Types

type EndpointError

type EndpointError struct {
	Err error
	// contains filtered or unexported fields
}

func (*EndpointError) Delay

func (e *EndpointError) Delay() time.Duration

func (*EndpointError) Error

func (e *EndpointError) Error() string

Jump to

Keyboard shortcuts

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