amqpcmds

package
v0.0.0-...-be4a563 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpCommand

type AmqpCommand interface {
	CommandExport(queue string) error
	CommandCopyMoveToQueue(srcQueue, dstQueue string) error
}

AmqpCommand general interface for the command execution

func NewCommandInfo

func NewCommandInfo(user, password, host string,
	port int,
	autoACK bool,
	prefetch, count int,
	file, formatPrefix, formatSeparator, formatPostfix string) AmqpCommand

NewCommandInfo creates a new instance that can execute the Amqp commands, with the default amqp dialer wrapper

type CommandInfo

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

CommandInfo defines a basic structure to execute amqp commands

func (*CommandInfo) CommandCopyMoveToQueue

func (c *CommandInfo) CommandCopyMoveToQueue(srcQueue, dstQueue string) error

CommandCopyMoveToQueue copy or moves messages from one queue to another one. The copy is a exact one: it propagate the meta-information of the message, not just the content.

func (*CommandInfo) CommandExport

func (c *CommandInfo) CommandExport(queue string) error

CommandExport exports the content of a queue using the queue configuration and predefined format.

Jump to

Keyboard shortcuts

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