Documentation ¶
Index ¶
Constants ¶
View Source
const (
DELAY_QUEUE_NAME = "glue:delayqueue:list"
)
View Source
const (
Proto = "redis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { EnableDeadLetter bool //开启死信队列 DeadLetterQueue string // contains filtered or unexported fields }
Consumer Consumer
func NewConsumer ¶
NewConsumerByConfig 创建新的Consumer
type MsgBody ¶
type MsgBody struct { QueueKey string `json:"qk,omitempty"` HeaderMap xtypes.SMap `json:"header,omitempty"` BodyMap xtypes.XMap `json:"body,omitempty"` // contains filtered or unexported fields }
func (MsgBody) MarshalBinary ¶ added in v0.4.4
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer memcache配置文件
func NewProducer ¶
NewProducerByConfig 根据配置文件创建一个redis连接
type ProductOptions ¶ added in v0.1.19
Click to show internal directories.
Click to hide internal directories.