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 NewWorker ¶
func NewWorker(service factory.ServiceFactory, 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 { EventID string `json:"id"` HandlerName string `json:"h"` Message string `json:"message"` }
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.