webhooks

package
v0.0.0-...-fea5d8a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postmark

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

Postmark handles webhook notifications (mainly bounce notifications).

func NewPostmark

func NewPostmark(username, password string) *Postmark

func (*Postmark) ProcessBounce

func (p *Postmark) ProcessBounce(b []byte, c echo.Context) ([]models.Bounce, error)

ProcessBounce processes Postmark bounce notifications and returns one object.

type SES

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

SES handles SES/SNS webhook notifications including confirming SNS topic subscription requests and bounce notifications.

func NewSES

func NewSES() *SES

NewSES returns a new SES instance.

func (*SES) ProcessBounce

func (s *SES) ProcessBounce(b []byte) (models.Bounce, error)

ProcessBounce processes an SES bounce notification and returns a Bounce object.

func (*SES) ProcessSubscription

func (s *SES) ProcessSubscription(b []byte) error

ProcessSubscription processes an SNS topic subscribe / unsubscribe notification by parsing and verifying the payload and calling the subscribe / unsubscribe URL.

type Sendgrid

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

Sendgrid handles Sendgrid/SNS webhook notifications including confirming SNS topic subscription requests and bounce notifications.

func NewSendgrid

func NewSendgrid(key string) (*Sendgrid, error)

NewSendgrid returns a new Sendgrid instance.

func (*Sendgrid) ProcessBounce

func (s *Sendgrid) ProcessBounce(sig, timestamp string, b []byte) ([]models.Bounce, error)

ProcessBounce processes Sendgrid bounce notifications and returns one or more Bounce objects.

Jump to

Keyboard shortcuts

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