Documentation
¶
Index ¶
- Constants
- func NewMQ() mq.IReactMQ
- type EtcdMQ
- func (this *EtcdMQ) Connect(mode mq.Mode, strURL string) (err error)
- func (this *EtcdMQ) Consume(strBindingKey, strQueueName string, cb mq.FnConsumeCb) (err error)
- func (this *EtcdMQ) Debug(enable bool)
- func (this *EtcdMQ) IsClosed() bool
- func (this *EtcdMQ) Publish(strRoutingKey, strData string) (err error)
- func (this *EtcdMQ) Reconnect() (err error)
Constants ¶
View Source
const (
ETCD_SCHEMA_PRIFIX = "etcd://"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtcdMQ ¶
type EtcdMQ struct {
// contains filtered or unexported fields
}
func (*EtcdMQ) Connect ¶
strUrl格式 单机"etcd://127.0.0.1:2379" 集群 "etcd://127.0.0.1:2379,127.0.0.1:2479,..."
func (*EtcdMQ) Consume ¶
func (this *EtcdMQ) Consume(strBindingKey, strQueueName string, cb mq.FnConsumeCb) (err error)
Click to show internal directories.
Click to hide internal directories.