rabbitmq

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(url, queueName string)

Consume 消费消息

func Init

func Init(rabbitMQ RabbitmqSection)

func Shutdown

func Shutdown()

Types

type MQRequest

type MQRequest struct {
	Method  string      `json:"method"`
	Payload interface{} `json:"payload"`
}

type RabbitmqSection

type RabbitmqSection struct {
	Enable bool   `yaml:"enable"`
	Addr   string `yaml:"addr"`
	Queue  string `yaml:"queue"`
}
var (
	RabbitMQ RabbitmqSection
)

Jump to

Keyboard shortcuts

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