Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisService ¶
type RedisService struct { Conn redis.Conn PubSubConn redis.PubSubConn PubSubCbMap map[string]func(channel, message string) }
func NewRedisService ¶
func NewRedisService() *RedisService
func (*RedisService) Subscribe ¶
func (o *RedisService) Subscribe(channel interface{}, cb func(channel, message string)) error
Click to show internal directories.
Click to hide internal directories.