Documentation ¶
Index ¶
- Constants
- func GetRedisConn() redigo.Conn
- func GetRedisPubSubConn() *redigo.PubSubConn
- func Publish(channel string, msg interface{}) error
- func RedisMqInit()
- func Subscribe(recMsgFuncs map[string]RecSubMsgFunc, channels ...interface{}) error
- func Unsubscribe(channels ...interface{}) error
- type RecSubMsgFunc
- type RedisList
Constants ¶
View Source
const RedisTestchannel1 = "test1"
redis pubsub 示例的订阅频道
View Source
const RedisTestchannel2 = "test2"
redis pubsub 示例的订阅频道
Variables ¶
This section is empty.
Functions ¶
func RedisMqInit ¶
func RedisMqInit()
func Subscribe ¶
func Subscribe(recMsgFuncs map[string]RecSubMsgFunc, channels ...interface{}) error
订阅并接收消息
Types ¶
Click to show internal directories.
Click to hide internal directories.