Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/oktydag/go-mvc-rabbitmq

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/oktydag/go-mvc-rabbitmq

  • v0.0.0-20200925221755-e8ff5368bcf2
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-mvc-rabbitmq

  • This application shows us to usage of rabbitmq with GoLang.

Getting Started

1. Download or clone this repo with

https://github.com/oktydag/go-mvc-rabbitmq.git

Steps For Run

1. Download RabbitMQ Image via Docker

Run RabbitMQ container with default Username: guest and Password: guest

docker run -d --hostname my-rabbit --name my-rabbit -p 5672:5672 -p 15672:15672 rabbitmq:3-management

If you want to decleare your own username and password;

docker run -d --hostname my-rabbit --name my-rabbit -e RABBITMQ_DEFAULT_USER=oktydag -e RABBITMQ_DEFAULT_PASS=123456 -p 5672:5672 -p 15672:15672 rabbitmq:3-management

Then you can look deafult RabbitMQ port :

http://localhost:15672/

2. Run it

$ go run main.go

3. Call Services

Publish Message like this;

$ curl -X POST http://localhost:3000/publish  

Receive Message like this;

$ curl -X GET  http://localhost:3000/receive   

FAQs

Package last updated on 25 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc