All Projects → shaswata56 → grabbitmq

shaswata56 / grabbitmq

Licence: other
A high-level RabbitMQ driver for Golang.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to grabbitmq

AQtion
Aquantia AQC multigigabit NIC linux driver (atlantic) - development preview
Stars: ✭ 60 (+275%)
Mutual labels:  driver
HadesVR
The "DIY" SteamVR compatible VR setup made for tinkerers.
Stars: ✭ 88 (+450%)
Mutual labels:  driver
mongodb-jdbc-driver
MongoDB JDBC Driver | DbSchema MongoDB Designer
Stars: ✭ 47 (+193.75%)
Mutual labels:  driver
gspca-kinect2
Kinect2 Sensor Device Driver for Linux
Stars: ✭ 25 (+56.25%)
Mutual labels:  driver
golang-migrate-extra
golang-migrate extra drivers for io/fs
Stars: ✭ 13 (-18.75%)
Mutual labels:  driver
thpimon
Native ESXi on Arm hardware status driver for the Raspberry Pi.
Stars: ✭ 32 (+100%)
Mutual labels:  driver
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (+218.75%)
Mutual labels:  driver
dev twitter
A module to make the /dev/twitter
Stars: ✭ 72 (+350%)
Mutual labels:  driver
hobo vr
SteamVR driver prototyping tool
Stars: ✭ 44 (+175%)
Mutual labels:  driver
FakeGPS
[NOT MAINTAINED] FakeGPS driver for Windows
Stars: ✭ 85 (+431.25%)
Mutual labels:  driver
rtw88-usb
rtw88 family usb driver for linux rtl8723du rtl8822bu rtl8821cu rtl8822cu
Stars: ✭ 40 (+150%)
Mutual labels:  driver
GoogleDriveBrowser
Goole Drive Download Library for iOS
Stars: ✭ 13 (-18.75%)
Mutual labels:  driver
vmwmouse
VMware mouse driver for Windows 3.1
Stars: ✭ 315 (+1868.75%)
Mutual labels:  driver
sqlite3
The fastest and correct module for SQLite3 in Deno.
Stars: ✭ 143 (+793.75%)
Mutual labels:  driver
logisim-7-segment-display-driver
➿ TTL-7447-like implementation for logisim
Stars: ✭ 28 (+75%)
Mutual labels:  driver
FIFO-Driver
Character device driver working as FIFO pipe, created with a Linux Kernel module (SMP-Safe). Works on Android's kernel.
Stars: ✭ 12 (-25%)
Mutual labels:  driver
kmtest
Kernel-mode C++ unit testing framework in BDD-style
Stars: ✭ 42 (+162.5%)
Mutual labels:  driver
mongosh
The MongoDB Shell
Stars: ✭ 215 (+1243.75%)
Mutual labels:  driver
faunadb-ruby
Ruby driver for FaunaDB
Stars: ✭ 37 (+131.25%)
Mutual labels:  driver
hid-fanatecff
Driver to support ForceFeedback of the FANATEC CSL Elite Wheel Base
Stars: ✭ 81 (+406.25%)
Mutual labels:  driver

grabbitmq

A high-level RabbitMQ driver for Golang.

Import in your project:

go get github.com/shaswata56/grabbitmq

Usage Demo:

package main

import (
	"github.com/shaswata56/grabbitmq"
	"github.com/shaswata56/grabbitmq/consumer"
	"github.com/shaswata56/grabbitmq/helpers"
	"github.com/shaswata56/grabbitmq/publisher"
	"log"
)

func main() {
	grabbitmq.SetRabbitMQUri("amqps://username:[email protected]/random")

	pub := publisher.GetPublisher()
	pub.Connect()
	err := pub.CreateChannel("demoChannel")
	helpers.FailOnError(err, "Failed to create channel on publisher")
	err = pub.Publish([]byte("Hello RabbitMQ from demoChannel!!!"))
	helpers.FailOnError(err, "Fail to publish message")
	pub.Close()

	con := consumer.GetConsumer()
	con.Connect()
	err = con.CreateChannel("demoChannel")
	helpers.FailOnError(err, "Failed to create channel on publisher")
	messages, err := con.Consume()

	for message := range messages {
		log.Println(string(message.Body))
		if message.Body != nil {
			con.Close()
			break
		}
	}
}

Output:

2021/09/13 23:54:41 Hello RabbitMQ from demoChannel!!!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].