rabbitmq

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Consumer(msg string) error
}

Consumer 消费者

type Option

type Option func(*Options)

type Options

type Options struct {
	User   string
	Pwd    string
	Host   string
	Port   int
	Queues []*Queue
}

type Producer

type Producer interface {
	Publish() interface{}
}

Producer 生产者

type Queue

type Queue struct {
	Name     string
	Exchange string
	Key      string
}

type RabbitMQ

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

func (*RabbitMQ) Destroy

func (mq *RabbitMQ) Destroy() error

Jump to

Keyboard shortcuts

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