Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisSubscribe ¶
func NewRedisSubscribe()
Types ¶
type RedisSubscribe ¶
type RedisSubscribe struct { }
func (*RedisSubscribe) Publish ¶
func (s *RedisSubscribe) Publish(channel string, message any) error
Publish 发布数据
func (*RedisSubscribe) Subscribe ¶
func (s *RedisSubscribe) Subscribe(channel string, callback handler.SubscribeCallback)
Subscribe 订阅消息
Click to show internal directories.
Click to hide internal directories.