mq

package
v0.0.0-...-bed3fb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterAdmin sarama.ClusterAdmin

Functions

func InitMQ

func InitMQ(mode string) ([]sarama.AsyncProducer, error)

InitMQ initialize cluster admin and all producers, return all producers

Types

type AllConsumer

type AllConsumer struct {
	Order OrderConsumer
}
var Consumer AllConsumer

type AllProducer

type AllProducer struct {
	Order OrderProducer
}
var Producer AllProducer

type OrderConsumer

type OrderConsumer struct {
	// contains filtered or unexported fields
}

func (*OrderConsumer) Init

func (o *OrderConsumer) Init(server *pb.Server) error

Init consumer and subscribe

type OrderProducer

type OrderProducer struct {
	// contains filtered or unexported fields
}

func (*OrderProducer) Send

func (o *OrderProducer) Send(req *pb.SubmitRequest) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL