webhook

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package webhook provides an email client that forwards email events to an external service via HTTP POST. The receiving service is responsible for composing and sending the actual email with appropriate branding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client sends email events to a webhook URL

func NewClient

func NewClient(webhookURL, publicURL string) *Client

NewClient creates a new webhook email client

func (*Client) Close

func (c *Client) Close()

Close is a no-op for the webhook client

func (*Client) SendPasswordResetEmail

func (c *Client) SendPasswordResetEmail(ctx context.Context, emailAddress, token string) error

SendPasswordResetEmail posts a password reset event to the webhook URL

func (*Client) SendVerificationEmail

func (c *Client) SendVerificationEmail(ctx context.Context, emailAddress, token string) error

SendVerificationEmail posts a verification event to the webhook URL

Jump to

Keyboard shortcuts

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