amqp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Profile = "amqp"

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b *[]byte) *string

Types

type AmqpClient

type AmqpClient interface {
	Connect() (cha *amqp.Channel, err error)
	Close()
}

type Channel

type Channel struct {
	*amqp.Channel
}

func NewChannel

func NewChannel() (chn *Channel)

func (*Channel) Connect

func (chn *Channel) Connect(p *properties) (err error)

func (*Channel) PublishDirect

func (chn *Channel) PublishDirect(exchange, queueName, mgsConnect, key string) error

func (*Channel) PublishFanout

func (chn *Channel) PublishFanout(exchange, mgsConnect string) error

func (*Channel) Receive

func (chn *Channel) Receive(queueName string) (*string, error)

func (*Channel) ReceiveFanout

func (chn *Channel) ReceiveFanout(queueName, exchange string) (*string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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