Documentation ¶
Index ¶
Constants ¶
View Source
const (
Proto = "streamredis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer Consumer
func NewConsumer ¶
NewConsumerByConfig 创建新的Consumer
type ConsumerOptions ¶
type ConsumerOptions struct { Concurrency int `json:"concurrency" yaml:"concurrency"` //并发的消费者数量 BufferSize int `json:"buffer_size" yaml:"buffer_size"` //队列长度 BlockingTimeout int `json:"blocking_timeout" yaml:"blocking_timeout"` //获取消息阻塞时间秒 VisibilityTimeout int `json:"visibility_timeout" yaml:"visibility_timeout"` //消息保留时间 秒 ReclaimInterval int `json:"reclaim_interval" yaml:"reclaim_interval"` //失败消息重试周期 }
type MsgBody ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer memcache配置文件
func NewProducer ¶
NewProducerByConfig 根据配置文件创建一个redis连接
type ProductOptions ¶
type ProductOptions struct { DelayQueueName string `json:"delay_queue_name" yaml:"delay_queue_name"` StreamMaxLength int64 `json:"stream_max_len" yaml:"stream_max_len"` //消息队列长度 RangeSeconds int `json:"range_seconds" yaml:"range_seconds"` DelayInterval int `json:"delay_interval" yaml:"delay_interval"` }
Click to show internal directories.
Click to hide internal directories.