consumer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr        = "amqp://root:123456@127.0.0.1:5672"
	DefaultVirtualHost = "rmq"
	DefaultQueueName   = "rmq-queue"
	DefaultTagConsumer = "rmq-tag"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MQConsumer

type MQConsumer struct {
	Consumer *consumer
}

func (*MQConsumer) Init

func (c *MQConsumer) Init(options ...Option)

Init

that has been initialized properly essentially don't touch conn, channel, or done, and you can create Consumer manually

type Option

type Option func(*Options)

func Addr

func Addr(addr string) Option

func QueueName

func QueueName(queueName string) Option

func TagConsumer

func TagConsumer(tagConsumer string) Option

func VirtualHost

func VirtualHost(virtualHost string) Option

type Options

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

Jump to

Keyboard shortcuts

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