redi

package
v0.0.0-...-a9119a5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 Init

func Init()

初始化redis集群

func PopAllIM

func PopAllIM(queue string) []*model.IM

func PopAllMail

func PopAllMail() []*model.Mail

func PopAllPhone

func PopAllPhone() []*model.Sms

func PopAllSms

func PopAllSms() []*model.Sms

func WriteIM

func WriteIM(tos []string, content string)

func WriteIMModel

func WriteIMModel(im *model.IM, queue string)

func WriteImCard

func WriteImCard(conMap map[string]string)

func WriteMail

func WriteMail(tos []string, subject, content string)

func WriteMailModel

func WriteMailModel(mail *model.Mail)

func WritePhone

func WritePhone(tos []string, content string)

电话报警接口

func WritePhoneModel

func WritePhoneModel(phone *model.Sms)

func WriteSms

func WriteSms(tos []string, content string)

func WriteSmsModel

func WriteSmsModel(sms *model.Sms)

Types

This section is empty.

Jump to

Keyboard shortcuts

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