rabbitmq

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificationQueue = "notification"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NewNotificationMsg

type NewNotificationMsg struct {
	CardID  int    `json:"cardID"`
	Content string `json:"content"`
	UserIDs []int  `json:"userIDs"`
}

type RabbitMQ

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

func (*RabbitMQ) CloseConnection

func (r *RabbitMQ) CloseConnection() (err error)

func (*RabbitMQ) CreateQueue

func (r *RabbitMQ) CreateQueue(queueName string) (err error)

func (*RabbitMQ) GetConsumerChan

func (r *RabbitMQ) GetConsumerChan(queue string) (messages <-chan amqp.Delivery, err error)

func (*RabbitMQ) PublishMsg

func (r *RabbitMQ) PublishMsg(queue string, message []byte) (err error)

func (*RabbitMQ) Setup

func (r *RabbitMQ) Setup(serverURL string) (err error)

Jump to

Keyboard shortcuts

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