Documentation ¶
Index ¶
Constants ¶
View Source
const ( PropertyCorrelationID = "CorrelationId" PropertyReplyTo = "ReplyTo" PropertyMessageID = "MessageId" PropertyAppID = "AppId" PropertyUserID = "UserId" PropertyContentType = "ContentType" )
Constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Topic string ConnConfigName string // 消息类型: //direct:组播,订阅同一个topic,消费者组会相同,一条消息只会被组内一个消费者接收 //fanout:广播,订阅同一个topic,但是消费者组会使用uuid,所有组都会收到信息 MessageType string `yaml:"messageType" json:"messageType"` }
Config Pulsar MQ configuration
type PulsarMQ ¶
type PulsarMQ struct { Name string Publish chan *mqenv.MQPublishMessage Consume chan *mqenv.MQConsumerProxy Done chan error Close chan interface{} // contains filtered or unexported fields }
PulsarMQ instance
func InitPulsarMQ ¶
func InitPulsarMQ(mqConnName string, connCfg *mqenv.MQConnectorConfig, pulsarCfg *Config) (*PulsarMQ, error)
InitPulsarMQ init
func NewPulsarMQ ¶
func NewPulsarMQ(mqConnName string, connCfg *mqenv.MQConnectorConfig, pulsarCfg *Config) *PulsarMQ
NewPulsarMQ with parameters
func (*PulsarMQ) QueryRPC ¶
func (r *PulsarMQ) QueryRPC(pm *mqenv.MQPublishMessage) (*mqenv.MQConsumerMessage, error)
QueryRPC publishes a message and waiting the response
Click to show internal directories.
Click to hide internal directories.