Files
web_huangguo2_h5/pub/redis/channeldef.go
T
谢宇宁andClaude Opus 5.5 0fbdba5ccf Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 11:47:47 +07:00

76 lines
2.0 KiB
Go

package redis
import "time"
// RCType redis channel type
type RCType string
const (
// config
RCT_cfg_all RCType = "config.*"
// tabkind 配置改变
RCT_cfg_tabkind_change RCType = "config.tabkindchange"
// mediatag 配置改变
RCT_cfg_mediatag_change RCType = "config.mediatagchange"
// mediacat 配置改变
RCT_cfg_mediacat_change RCType = "config.mediacatchange"
// mediatopic 配置改变
RCT_cfg_mediatopic_change RCType = "config.mediatopicchange"
// mediacolumn 配置改变
RCT_cfg_mediacolumn_change RCType = "config.mediacolumnchange"
// syscfg 系统配置改变
RCT_cfg_syscfg_change RCType = "config.syscfgchange"
// 广告
RCT_ad_all RCType = "ad.*"
// 广告配置改变
RCT_ad_cfgchange RCType = "ad.cfgchange"
// 系统通知
RCT_blt_all RCType = "blt.*"
// 系统通知
RCT_blt_cfgchange RCType = "blt.cfgchange"
//media
RCT_media_all RCType = "media.*"
//media 信息改变
RCT_media_change RCType = "media.change"
//media 信息添加
RCT_media_add RCType = "media.add"
//media 信息删除
RCT_media_del RCType = "media.del"
//media 相关排行榜改变
RCT_media_topchange RCType = "media.topchange"
//user
RCT_user_all RCType = "user.*"
//user 信息改变
RCT_user_change RCType = "user.change"
//user 信息添加
RCT_user_add RCType = "user.add"
//user 信息删除
RCT_user_del RCType = "user.del"
//user 相关排行榜改变
RCT_user_topchange RCType = "user.topchange"
//视频推荐
RCT_recommend_all RCType = "recommend.*"
//博主推荐
RCT_recommend_blogger_all RCType = "recommend.bloggerALL"
// 视频每日推荐
RCT_recommend_media_all RCType = "recommend.mediaAll"
//tg消息
RCT_tgmsg_all RCType = "tgmsg.*"
RCT_tgmsg_send_msg RCType = "tgmsg.sendmsg"
//vipcard
RCT_vipcard_all RCType = "vipcard.*"
RCT_vipcard_change RCType = "vipcard.change"
NameSource = "name:source" //姓名池
NameSourceExpire = 2 * 24 * time.Hour
CommunicateServerChannel = "comm:lld#server"
CommunicateClientChannel = "comm:lld#client"
)