rabbitMQWrapper

package
v0.0.0-...-e0f34cb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQClient

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

func NewClient

func NewClient(rabbitMQServerIP, rabbitMQServerPort, rabbitMQServerUsr, rabbitMQServerPass, rabbitMQVhost string) (*RabbitMQClient, error)

func (*RabbitMQClient) Close

func (cli *RabbitMQClient) Close() error

func (*RabbitMQClient) Connect

func (cli *RabbitMQClient) Connect(mqurl string) error

func (*RabbitMQClient) GetQueueLength

func (cli *RabbitMQClient) GetQueueLength(queueName string) (int, error)

func (*RabbitMQClient) Pop

func (cli *RabbitMQClient) Pop(queueName string, workQueue bool) (string, error)

func (*RabbitMQClient) PopAll

func (cli *RabbitMQClient) PopAll(queueName string) (string, error)

func (*RabbitMQClient) Push

func (cli *RabbitMQClient) Push(queueName, msgContent string) error

Jump to

Keyboard shortcuts

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