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
type MockClient ¶
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 |
Click to show internal directories.
Click to hide internal directories.