email

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package email supports sending emails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func NewMockProvider

func NewMockProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProvider

NewMockProvider creates a new instance of MockProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockProvider) SendMail

func (_m *MockProvider) SendMail(ctx context.Context, to []string, subject string, body string) error

SendMail provides a mock function with given fields: ctx, to, subject, body

type NoopProvider

type NoopProvider struct{}

NoopProvider is an email provider that doesn't send any emails

func (*NoopProvider) SendMail

func (n *NoopProvider) SendMail(_ context.Context, _ []string, _, _ string) error

SendMail is a noop

type Provider

type Provider interface {
	SendMail(ctx context.Context, to []string, subject, body string) error
}

Provider is an interface for sending emails and events

Jump to

Keyboard shortcuts

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