lists

package
v0.0.0-...-e9b2e8b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMailingList

func DeleteMailingList(ctx context.Context, listID int)

Deletes a mailing list. Note that this function makes no attempt to verify the authorization of the caller to do so.

It can take a while for the cascades to propagate out, so this belongs in a worker rather than blocking the request.

func ImportMailingListSpool

func ImportMailingListSpool(ctx context.Context, listID int, spool io.Reader)

Schedules a mailing list import.

func Middleware

func Middleware(queue *work.Queue) func(next http.Handler) http.Handler

Types

type PatchDetails

type PatchDetails struct {
	Prefix  string
	Subject string
	Version int
	Index   int
	Count   int
}

Jump to

Keyboard shortcuts

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