rabbitmq

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChannelPoolSize        = 5
	ExchangeType           string = "topic"
	DefaultContentType     string = "application/json"
)

Variables

This section is empty.

Functions

func NewPublisher

func NewPublisher(
	conn *amqp.Connection,
	opts ...publisher.OptionFunc,
) goqueue.Publisher

Types

type ChannelPool

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

func NewChannelPool

func NewChannelPool(conn *amqp.Connection, maxSize int) *ChannelPool

func (*ChannelPool) Close

func (cp *ChannelPool) Close() (err error)

func (*ChannelPool) Get

func (cp *ChannelPool) Get() (*amqp.Channel, error)

func (*ChannelPool) Return

func (cp *ChannelPool) Return(ch *amqp.Channel)

Jump to

Keyboard shortcuts

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