mq

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	QueueName    string
	ExchangeName string
	BindingKey   string
}

type RabbitClient

type RabbitClient struct {
	ConnectionString string

	AutoACK            bool
	QueueNames         []string
	ConsumeQueues      []string
	ExchangeNames      []string
	DefaultContentType string
	Bindings           []Binding
	PrefetchCount      int
	ConsumeHandler     func(queueName string, d amqp.Delivery) error
	// contains filtered or unexported fields
}

func (*RabbitClient) Close

func (c *RabbitClient) Close()

func (*RabbitClient) Consume

func (c *RabbitClient) Consume() error

func (*RabbitClient) Init

func (c *RabbitClient) Init()

func (*RabbitClient) Publish

func (c *RabbitClient) Publish(exchange, bindingKey string, data []byte) error

Jump to

Keyboard shortcuts

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