Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRedisPubSubMessage ¶ added in v1.9.0
CreateRedisPubSubMessage create new redis pubsub message
func DeleteRedisPubSubMessage ¶ added in v1.9.1
DeleteRedisPubSubMessage delete redis key pubsub message pattern
func NewWorker ¶
func NewWorker(service factory.ServiceFactory, bk interfaces.Broker, opts ...OptionFunc) factory.AppServerFactory
NewWorker create new redis subscriber
Types ¶
type OptionFunc ¶ added in v1.7.4
type OptionFunc func(*option)
OptionFunc type
func SetDebugMode ¶ added in v1.7.4
func SetDebugMode(debugMode bool) OptionFunc
SetDebugMode option func
func SetMaxGoroutines ¶ added in v1.7.4
func SetMaxGoroutines(maxGoroutines int) OptionFunc
SetMaxGoroutines option func
type RedisMessage ¶ added in v1.9.0
type RedisMessage struct { HandlerName string `json:"h"` Message string `json:"message"` EventID string `json:"id,omitempty"` }
RedisMessage model for redis subscriber key
func ParseRedisPubSubKeyTopic ¶ added in v1.9.0
func ParseRedisPubSubKeyTopic(key []byte) (redisMessage RedisMessage)
ParseRedisPubSubKeyTopic parse key to redis message
Click to show internal directories.
Click to hide internal directories.