middleware

package
v0.0.0-...-49c38f5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notifier

func Notifier(inspector *asynq.Inspector, cfg config.Configuration) func(asynq.Handler) asynq.Handler

Notifier is a asynq middleware to handle cancelled jobs and sending out email notification.

Types

type DataNotification

type DataNotification struct {
	ID           string
	State        nmode
	StagerUser   string
	DrUser       string
	SrcURL       string
	DstURL       string
	CreatedAt    time.Time
	CompletedAt  time.Time
	LastFailedAt time.Time
	LastErr      string
	Result       tasks.StagerTaskResult
}

Jump to

Keyboard shortcuts

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