Documentation
¶
Overview ¶
Package email defines the transactional email sender interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender interface {
// Send hands m to the provider and returns the provider's ID for it. A nil error
// means the provider accepted the message, not that it arrived.
Send(ctx context.Context, m Message) (id string, err error)
}
Sender sends transactional email, such as Scaleway Transactional Email.
type Tracker ¶
type Tracker interface {
// Delivery returns the state of the message with the given ID and, once it was
// delivered, when.
Delivery(ctx context.Context, id string) (Delivery, time.Time, error)
}
Tracker reports what became of messages, for providers that can tell.
type TrackingSender ¶
TrackingSender sends messages and reports their delivery. Anything that must know a message arrived, such as a warning before credit expires, needs one.
Click to show internal directories.
Click to hide internal directories.