Documentation ¶
Index ¶
- Variables
- func BuildMqConnAddr() string
- func ConsumeMessage(ctx context.Context, queueName string) (msg <-chan amqp.Delivery, err error)
- func ExtractAMQPHeaders(ctx context.Context, headers map[string]interface{}) context.Context
- func InjectAMQPHeaders(ctx context.Context) map[string]interface{}
- func SendMessage2MQ(body []byte, queueName string) (err error)
- type AmqpHeadersCarrier
Constants ¶
This section is empty.
Variables ¶
View Source
var RabbitMQ *amqp.Connection
Functions ¶
func BuildMqConnAddr ¶
func BuildMqConnAddr() string
func ConsumeMessage ¶
func ExtractAMQPHeaders ¶
func InjectAMQPHeaders ¶
func SendMessage2MQ ¶
Types ¶
type AmqpHeadersCarrier ¶
type AmqpHeadersCarrier map[string]interface{}
func (AmqpHeadersCarrier) Get ¶
func (a AmqpHeadersCarrier) Get(key string) string
func (AmqpHeadersCarrier) Keys ¶
func (a AmqpHeadersCarrier) Keys() []string
func (AmqpHeadersCarrier) Set ¶
func (a AmqpHeadersCarrier) Set(key string, value string)
Click to show internal directories.
Click to hide internal directories.