mq

package
v0.0.0-...-9a85bd8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

func ConnectScript

func ConnectScript()

func InitAmqp

func InitAmqp()

func NewServer

func NewServer(handler func(delivery amqp.Delivery)) *server

Types

type Service

type Service struct {
	AmqpUrl       string //amqp地址
	ConnectionNum int    //连接数
	ChannelNum    int    //每个连接的channel数量
	// contains filtered or unexported fields
}
var AmqpServer Service

func (*Service) Consume

func (S *Service) Consume(queueName string) (<-chan amqp.Delivery, error)

func (*Service) QueueDeclare

func (S *Service) QueueDeclare(exchangeName string, notice interface{}) (message interface{}, puberr error)

Jump to

Keyboard shortcuts

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