Documentation ¶
Index ¶
- func AddToMailList(mail_list models.MailList) error
- func CreateMailList(mail_list models.MailList) error
- func GetAllMailLists() (*models.MailListList, error)
- func GetMailList(id string) (*models.MailList, error)
- func GetUserInfo(id string) (*models.UserInfo, error)
- func Initialize() error
- func RemoveFromMailList(mail_list models.MailList) error
- func SendMail(mail_info models.MailInfo) (*models.MailStatus, error)
- func SendMailByID(mail_order models.MailOrder) (*models.MailStatus, error)
- func SendMailByList(mail_order_list models.MailOrderList) (*models.MailStatus, error)
- func SendMailDev(mail_info models.MailInfo) (*models.MailStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToMailList ¶
Adds the given users to the specified mailing list
func CreateMailList ¶
Create a mailing list with the given id and initial set of user, if provided. Returns an error if a list with given ID already exists.
func GetAllMailLists ¶
func GetAllMailLists() (*models.MailListList, error)
Gets all created mailing lists
func GetMailList ¶
Gets the mail list with the given id
func GetUserInfo ¶
Get basic user info from user serivce
func Initialize ¶ added in v0.3.0
func Initialize() error
func RemoveFromMailList ¶
Removes the given users from the specified mailing list
func SendMail ¶
func SendMail(mail_info models.MailInfo) (*models.MailStatus, error)
Send mail based on the given mailing info Returns the results of sending the mail
func SendMailByID ¶
func SendMailByID(mail_order models.MailOrder) (*models.MailStatus, error)
Send mail the the users with the given ids, using the provided template Substitution will be generated based on user info
func SendMailByList ¶
func SendMailByList(mail_order_list models.MailOrderList) (*models.MailStatus, error)
Send mail to the users in the given mailing list, using the provided template Substitution will be generated based on user info
func SendMailDev ¶
func SendMailDev(mail_info models.MailInfo) (*models.MailStatus, error)
Returns the expected success response in the same format as SparkPost This is only to be used in development environments
Types ¶
This section is empty.