Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorFunc ¶
type ProcessorFunc func(message []byte)
ProcessorFunc represents a processor function that consume message
type RedisConfig ¶
type RedisConfig struct { RedisHost string RedisPassword string Channel string Processor ProcessorFunc }
RedisConfig represents a configuration for Redis subscriber
type RedisSubscriber ¶
type RedisSubscriber struct {
// contains filtered or unexported fields
}
RedisSubscriber handles event subscription
func NewRedis ¶
func NewRedis(conf *RedisConfig) (*RedisSubscriber, error)
NewRedis creates a new Redis subscriber
Click to show internal directories.
Click to hide internal directories.