Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusFailed = "failed" StatusRetry = "retry" StatusDelivered = "delivered" StatusQueued = "queued" StatusUndeliverable = "undeliverable" )
View Source
const HTMLWrapperTemplate = `` /* 166-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func UAAErrorFor ¶
Types ¶
type DeliveryFailureHandler ¶
type DeliveryFailureHandler struct {
// contains filtered or unexported fields
}
func NewDeliveryFailureHandler ¶
func NewDeliveryFailureHandler(numRetries int) DeliveryFailureHandler
type MessageContext ¶
type MessageContext struct { From string ReplyTo string To string Subject string Text string HTML string HTMLComponents HTML TextTemplate string HTMLTemplate string SubjectTemplate string KindDescription string SourceDescription string UserGUID string ClientID string MessageID string Space string SpaceGUID string Organization string OrganizationGUID string UnsubscribeID string Scope string Endorsement string OrganizationRole string RequestReceived time.Time Domain string }
func NewMessageContext ¶
func NewMessageContext(delivery Delivery, sender, domain string, cloak conceal.CloakInterface, templates Templates) MessageContext
func (*MessageContext) Escape ¶
func (context *MessageContext) Escape()
type Packager ¶
type Packager struct {
// contains filtered or unexported fields
}
func NewPackager ¶
func NewPackager(templates templatesLoader, cloak conceal.CloakInterface) Packager
func (Packager) CompileParts ¶
func (packager Packager) CompileParts(context MessageContext) ([]mail.Part, error)
func (Packager) PrepareContext ¶
func (packager Packager) PrepareContext(delivery Delivery, sender, domain string) (MessageContext, error)
type UAADownError ¶
type UAADownError struct {
Err error
}
func (UAADownError) Error ¶
func (e UAADownError) Error() string
type UAAGenericError ¶
type UAAGenericError struct {
Err error
}
func (UAAGenericError) Error ¶
func (e UAAGenericError) Error() string
type UAAUserNotFoundError ¶
type UAAUserNotFoundError struct {
Err error
}
func (UAAUserNotFoundError) Error ¶
func (e UAAUserNotFoundError) Error() string
type UserLoader ¶
type UserLoader struct {
// contains filtered or unexported fields
}
func NewUserLoader ¶
func NewUserLoader(uaaClient uaaEmailGetter) UserLoader
Click to show internal directories.
Click to hide internal directories.