Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added example for RabbitMQ #1031

Closed
wants to merge 1 commit into from

Conversation

Tingaev
Copy link

@Tingaev Tingaev commented Apr 1, 2023

What does this PR do?

Added example for RabbitMQ

Why is it important?

RabbitMQ doesn't have example yet

Related issues

@Tingaev Tingaev requested a review from a team as a code owner April 1, 2023 12:44
@netlify
Copy link

netlify bot commented Apr 1, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 5c8202c
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6428271b6c8f4100075d43ef
😎 Deploy Preview https://deploy-preview-1031--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented Apr 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication


// perform assertions

amqpConnection, err := amqp.Dial(fmt.Sprintf("amqp://guest:guest@%s", container.endpoint))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great having the amqp connection here. Could you extend the example on how to put/get values on/from the queue? 🙏

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok
I'm just wondering what's the best way to do this?

  1. Write and read in one connection
  2. Or separate

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an expert in RabbitMQ, so I'd suggest adding the most educational example on how to do it.

@mdelapenya
Copy link
Collaborator

FYI, we have submitted a fully-working module for RabbitMQ here: #1618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants