amqp

package
v0.0.0-...-2b10ae3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(url string) (*Connection, error)

func (*Connection) Consume

func (c *Connection) Consume(queueName string) Consume

func (*Connection) Publish

func (c *Connection) Publish(host, vhost, queueName string, msgs []byte)

func (*Connection) QueueDeclare

func (c *Connection) QueueDeclare(queueName string, args loader.Queue) QueueDeclare

func (*Connection) Shutdown

func (c *Connection) Shutdown()

type Consume

type Consume struct {
	Name string
	Body <-chan amqp.Delivery
}

type QueueDeclare

type QueueDeclare struct {
	Name     string
	Messages int
}

Jump to

Keyboard shortcuts

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