channel

package
v0.0.0-...-8269def Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelClient

type ChannelClient struct {
	Conn          *amqp.Connection
	Channel       *amqp.Channel
	Queue         amqp.Queue
	Durable       bool
	Exclusive     bool // durable
	Del_when_used bool // delete when unused
	No_wait       bool // no-wait
}

func NewChannel

func NewChannel() *ChannelClient

Constructs a new channelClient with the given framing rules

func (*ChannelClient) CreateChannel

func (t *ChannelClient) CreateChannel(name string)

create a channel, which is where most of the API

func (*ChannelClient) CreateExchange

func (t *ChannelClient) CreateExchange(name string, typex string)

* * Available types: direct, topic, headers, fanout * fanout - simple broadcasts all messages it receives to all the queues (good for logger) * direct - simple messaing to queues that binding key match routing_key of message

func (*ChannelClient) Name

func (t *ChannelClient) Name() string

func (*ChannelClient) QueueBind

func (t *ChannelClient) QueueBind(exchange string, key string)

func (*ChannelClient) QueueDeclare

func (t *ChannelClient) QueueDeclare(name string)

func (*ChannelClient) ReceiveMessages

func (t *ChannelClient) ReceiveMessages()

func (*ChannelClient) SendMessage

func (t *ChannelClient) SendMessage(exchange string)

function thats send simple message to named channel (Directly)

func (*ChannelClient) SendWorkMessage

func (t *ChannelClient) SendWorkMessage(msg []string)

Jump to

Keyboard shortcuts

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