Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQueueEmpty = errors.New("queue is empty")
Functions ¶
func TestPersister ¶
Types ¶
type Courier ¶
type Courier struct {
// contains filtered or unexported fields
}
func NewSMTP ¶
func NewSMTP(d smtpDependencies, c configuration.Provider) *Courier
func (*Courier) QueueEmail ¶
type EmailTemplate ¶
type Message ¶
type Message struct { ID uuid.UUID `json:"-" faker:"-" db:"id"` Status MessageStatus `json:"-" db:"status"` Type MessageType `json:"-" db:"type"` Recipient string `json:"-" db:"recipient"` Body string `json:"-" db:"body"` Subject string `json:"-" db:"subject"` // CreatedAt is a helper struct field for gobuffalo.pop. CreatedAt time.Time `json:"-" faker:"-" db:"created_at"` // UpdatedAt is a helper struct field for gobuffalo.pop. UpdatedAt time.Time `json:"-" faker:"-" db:"updated_at"` }
type MessageStatus ¶
type MessageStatus int
const ( MessageStatusQueued MessageStatus = iota + 1 MessageStatusSent )
type PersistenceProvider ¶
type PersistenceProvider interface {
CourierPersister() Persister
}
Click to show internal directories.
Click to hide internal directories.