Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MessageInputChannel chan *sarama.ProducerMessage
)
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Client sarama.Consumer TopicMap map[string]interface{} // 消息topic所对应的[]byte解析结构体 }
func GetConsumerInstance ¶
func GetConsumerInstance() *Consumer
func (*Consumer) StartConsumerMQ ¶
type Producer ¶
type Producer struct {
Client sarama.AsyncProducer
}
func GetProducerInstance ¶
func GetProducerInstance() *Producer
type ProducerConsumerServer ¶
type ProducerConsumerServer struct{}
func (*ProducerConsumerServer) PublishSaleOrderMessage ¶
func (t *ProducerConsumerServer) PublishSaleOrderMessage(in *pb.SaleOrderTemplateMessage, out *pb.SaleOrderTemplateMessage) (err error)
Click to show internal directories.
Click to hide internal directories.