service

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToMailList

func AddToMailList(mail_list models.MailList) error

Adds the given users to the specified mailing list

func CreateMailList

func CreateMailList(mail_list models.MailList) error

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

func GetMailList(id string) (*models.MailList, error)

Gets the mail list with the given id

func GetUserInfo

func GetUserInfo(id string) (*models.UserInfo, error)

Get basic user info from user serivce

func RemoveFromMailList

func RemoveFromMailList(mail_list models.MailList) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL