Documentation
¶
Index ¶
- type Memory
- type Message
- func (m *Message) GetID() string
- func (m *Message) GetPrefix() (prefix string)
- func (m *Message) GetStream() string
- func (m *Message) GetValues() map[string]interface{}
- func (m *Message) SetID(id string)
- func (m *Message) SetPrefix(prefix string)
- func (m *Message) SetStream(stream string)
- func (m *Message) SetValues(values map[string]interface{})
- type NSQ
- type Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct { PoolNum uint // contains filtered or unexported fields }
func (*Memory) Register ¶
func (m *Memory) Register(name string, f storage.ConsumerFunc)
type Message ¶
type Message struct {
redisqueue.Message
}
type NSQ ¶
type NSQ struct {
// contains filtered or unexported fields
}
func NewNSQ ¶
NewNSQ nsq模式 只能监听一个channel
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis cache implement
func NewRedis ¶
func NewRedis( producerOptions *redisqueue.ProducerOptions, consumerOptions *redisqueue.ConsumerOptions, ) (*Redis, error)
NewRedis redis模式
func (*Redis) Register ¶
func (r *Redis) Register(name string, f storage.ConsumerFunc)
Click to show internal directories.
Click to hide internal directories.