Documentation
¶
Overview ¶
Package failover composes borrowed email transports. A send moves to the next transport only after a Transient failure: a known non-acceptance. Permanent, Construction and Ambiguous outcomes stop immediately, because an ambiguous submission may already have been accepted and trying another transport could deliver the message twice.
Index ¶
Constants ¶
View Source
const MaxTransports = 8
MaxTransports bounds one composition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver borrows its transports; close them after the owning mailer drains. It renders MIME for every transport, which provider API drivers accept too.
func RoundRobin ¶
RoundRobin starts each send at the next transport in turn, spreading load, and fails over through the others in order.
Click to show internal directories.
Click to hide internal directories.