package
0.4.0
Repository: https://github.com/levenlabs/postmaster.git
Documentation: pkg.go.dev

# Functions

DisableOkq turns off using okq for job storing this should ONLY be called during testing.
GenerateEmailID generates a uniqueID and stores a record of an intended email this is used in okq.go and in tests.
GetLastUniqueID gets the last StatDoc for the given recipient and uniqueID.
this is mostly for testing purposes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StoreEmailBounce stores a new time when the email bounced.
StoreEmailFlags updates the email with new flags restrictions.
StoreEmailSpam stores a new time when the email was spammed.
StoreSendJob creates a new Mail job with jobContents and sends it to okq.
StoreStatsJob creates a new statsJob with jobContents and sends it to okq.
VerifyEmailAllowed verifies that we're allowed to send an email with flags to recipient.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

MongoDisabledErr is returned when we need mongo but don't have it.

# Structs

EmailDoc represents a doc of the email's preferences, bounces, spams.
A StatDoc represents an email that was sent.
A StatsJob encompasses a okq job in response to a webhook event and is used to update the StatDoc for a specific email identified by StatsID.