callback

package
v0.0.0-...-1d06aa6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

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

func New

func New(logger *zap.Logger, proxyUrl string) *Callback

func (*Callback) SendCompletion

func (c *Callback) SendCompletion(ctx context.Context, request gdprrelay.GDPRRequest, result ResultData) error

type ResultData

type ResultData struct {
	TranscriptsDeleted int                   // Number of transcript archives deleted
	MessagesDeleted    int                   // Number of ticket messages deleted
	Error              error                 // Error if the processing failed
	RequestType        gdprrelay.RequestType // Type of GDPR request that was processed
	GuildIds           []uint64              // Guild IDs affected by this request
	TicketIds          []int                 // Ticket IDs affected by this request
}

ResultData contains the result of a GDPR request to be sent back to the user

Jump to

Keyboard shortcuts

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