payloads

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailReceivedPayload

type MailReceivedPayload struct {
	Type           string `json:"type"`
	MailFrom       string `json:"mail_from"`
	Subject        string `json:"subject"`
	ContentPreview string `json:"content_preview"`
}

MailReceivedPayload represents the payload for mail received notifications.

func NewMailReceivedPayload

func NewMailReceivedPayload(from string, subject string, contentPreview string) *MailReceivedPayload

NewMailReceivedPayload creates a new MailReceivedPayload with the given from, subject and content preview.

func (*MailReceivedPayload) GetData

func (p *MailReceivedPayload) GetData() map[string]string

GetData returns the ready to send data for the payload.

func (*MailReceivedPayload) GetType

func (p *MailReceivedPayload) GetType() string

GetType returns the type of the payload.

Jump to

Keyboard shortcuts

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