Categorygithub.com/aacfactory/fns-contrib/message-queues/rabbit
modulepackage
0.12.5
Repository: https://github.com/aacfactory/fns-contrib.git
Documentation: pkg.go.dev

# README

RABBITMQ

Install

go get github.com/aacfactory/fns-contrib/message-queues/rabbit

Usage

app.Deploy(rabbit.Service())

Config

rabbitmq:
  uri: "amqp://"
  producers:
    foo:
      exchange: "exchange"
      confirmMode: true
      key: ""
      mandatory: false
      immediate: false
      size: 8
  consumers:
    bar:
      handler: default
      queue: ""
      autoAck: false
      exclusive: false
      noLocal: false
      noWait: false

Use user consumer handler

consumers:
  bar:
    handler: user_consumer
    handlerOptions:
      userId: "userId"

As proxy

published, publishErr := rabbit.Publish(ctx, rabbit.PublishArgument{
	Name: "producer name", 
	Body: json.RawMessage([]byte("{}"))
})

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author