email

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MPL-2.0 Imports: 8 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 Client

type Client interface {
	SendMail(ctx context.Context, input *SendMailInput)
}

Client is used for sending emails

func NewClient

func NewClient(emailProvider email.Provider, taskManager asynctask.Manager, dbClient *db.Client, logger logger.Logger, frontendURL string, emailFooter string) Client

NewClient returns a new client

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t mockConstructorTestingTNewMockClient) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockClient) SendMail

func (_m *MockClient) SendMail(ctx context.Context, input *SendMailInput)

SendMail provides a mock function with given fields: ctx, input

type SendMailInput

type SendMailInput struct {
	UsersIDs       []string
	TeamsIDs       []string
	ExcludeUserIDs []string
	Subject        string
	Builder        builder.EmailBuilder
}

SendMailInput is the input for sending an email

Directories

Path Synopsis
Package builder handles building email templates
Package builder handles building email templates
Package plunk defines the plunk email plugin
Package plunk defines the plunk email plugin
Package main is used to preview emails during development
Package main is used to preview emails during development
Package ses defines the ses email plugin
Package ses defines the ses email plugin
Package smtp defines the smtp email plugin
Package smtp defines the smtp email plugin

Jump to

Keyboard shortcuts

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