queue

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

Queue manager

func New

func New(lp *linkpearl.Linkpearl, cfg *config.Manager, log *zerolog.Logger) *Queue

New queue

func (*Queue) Add

func (q *Queue) Add(ctx context.Context, id, from, to, data string, relayOverride ...*url.URL) error

Add to queue

func (*Queue) Process

func (q *Queue) Process()

Process queue

func (*Queue) Remove

func (q *Queue) Remove(ctx context.Context, id string) error

Remove from queue

func (*Queue) SetSendmail

func (q *Queue) SetSendmail(function func(string, string, string, *url.URL) error)

SetSendmail func

Jump to

Keyboard shortcuts

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