rabbitmq

command module
v0.0.0-...-8835833 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README


{ "image": "direktiv/rabbitmq", "desc": "Writes a message to the RabbitMQ Service" }

RabbitMQ

Writes a message to the RabbitMQ Service

Direktiv

An example workflow of using the RabbitMQ service.

id: rabbitmq
functions:
- id: rabbit-mqwrite
  image: direktiv/rabbitmq:v1
description: "Writes a message to a RabbitMQ service"
states:
- id: writemsg
  type: action
  action:
    function: rabbit-mqwrite
    input: jq(.)

Input

Writes a message to the Rabbit MQ service hosted on the address.

input:
  address: "192.168.1.30:5672"
  username: "test"
  password: "test"
  queue: "direktiv"
  message: "Hello World :)!"

Output

If the output is successful nothing will be written but the message should appear in queue on RabbitMQ.

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.rabbitmq.error",
    "errorMsg": "Something went wrong"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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