task

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MPL-2.0 Imports: 23 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, taskname convoy.TaskName, handler interface{}) error

func ProcessDeadLetters

func ProcessDeadLetters(job *queue.Job)

func ProcessEventCreated added in v0.5.3

func ProcessEventCreated(appRepo datastore.ApplicationRepository, eventRepo datastore.EventRepository, groupRepo datastore.GroupRepository, eventDeliveryRepo datastore.EventDeliveryRepository, cache cache.Cache, eventQueue queue.Queuer) func(job *queue.Job) error

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

type SignatureValues added in v0.5.3

type SignatureValues struct {
	HMAC      string
	Timestamp string
}

Jump to

Keyboard shortcuts

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