Documentation ¶
Index ¶
- Constants
- Variables
- func Init()
- func PopAllIM(queue string) []*model.IM
- func PopAllMail() []*model.Mail
- func PopAllPhone() []*model.Sms
- func PopAllSms() []*model.Sms
- func WriteIM(tos []string, content string)
- func WriteIMModel(im *model.IM, queue string)
- func WriteImCard(conMap map[string]string)
- func WriteMail(tos []string, subject, content string)
- func WriteMailModel(mail *model.Mail)
- func WritePhone(tos []string, content string)
- func WritePhoneModel(phone *model.Sms)
- func WriteSms(tos []string, content string)
- func WriteSmsModel(sms *model.Sms)
Constants ¶
View Source
const ( IM_QUEUE_NAME = "/im" SMS_QUEUE_NAME = "/sms" MAIL_QUEUE_NAME = "/mail" PHONE_QUEUE_NAME = "/phone" FAILED_IM_QUEUE_NAME = "/failed/im" FINALLY_FAILED_IM_QUEUE_NAME = "/finally_failed/im" )
View Source
const SEP = "|||"
View Source
const TIMEOUT = 60 * 20
Variables ¶
View Source
var RedisCluster *redisc.Cluster
Functions ¶
func PopAllMail ¶
func PopAllPhone ¶
func WriteIMModel ¶
func WriteImCard ¶
func WriteMailModel ¶
func WritePhoneModel ¶
func WriteSmsModel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.