rabbitmq

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fila

type Fila struct {
	Name       string     // name
	Durable    bool       // durable
	AutoDelete bool       // delete when unused
	Exclusive  bool       // exclusive
	NoWait     bool       // no-wait
	Arguments  amqp.Table // arguments
}

type Message

type Message struct {
	Data        []byte
	ContentType string
}

type RabbitInterface

type RabbitInterface interface {
	Publish(ctx context.Context, queue_name string, msg *Message) error
	Consumer(queue_name string, callback func(msg *amqp.Delivery))
	Connect() error
	Start(queue_name string, callback func(msg *amqp.Delivery))
}

func New added in v0.1.1

func New(lista_filas []Fila, conf *config.Config) RabbitInterface

Jump to

Keyboard shortcuts

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