{"id":23868241,"url":"https://github.com/shaswata56/grabbitmq","last_synced_at":"2025-09-08T16:32:31.250Z","repository":{"id":57629083,"uuid":"406071107","full_name":"shaswata56/grabbitmq","owner":"shaswata56","description":"A high-level RabbitMQ driver for Golang.","archived":false,"fork":false,"pushed_at":"2021-09-27T08:40:21.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T03:33:49.844Z","etag":null,"topics":["driver","go","golang","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaswata56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-13T17:40:04.000Z","updated_at":"2022-08-02T20:31:38.000Z","dependencies_parsed_at":"2022-09-26T20:10:51.008Z","dependency_job_id":null,"html_url":"https://github.com/shaswata56/grabbitmq","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaswata56%2Fgrabbitmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaswata56%2Fgrabbitmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaswata56%2Fgrabbitmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaswata56%2Fgrabbitmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaswata56","download_url":"https://codeload.github.com/shaswata56/grabbitmq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232327083,"owners_count":18506001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["driver","go","golang","rabbitmq"],"created_at":"2025-01-03T11:18:12.272Z","updated_at":"2025-01-03T11:18:12.862Z","avatar_url":"https://github.com/shaswata56.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grabbitmq\n### A high-level RabbitMQ driver for Golang.\n\n#### Import in your project:\n```sh\ngo get github.com/shaswata56/grabbitmq\n````\n\n#### Usage Demo:\n\n```go\npackage main\n\nimport (\n\t\"github.com/shaswata56/grabbitmq\"\n\t\"github.com/shaswata56/grabbitmq/consumer\"\n\t\"github.com/shaswata56/grabbitmq/helpers\"\n\t\"github.com/shaswata56/grabbitmq/publisher\"\n\t\"log\"\n)\n\nfunc main() {\n\tgrabbitmq.SetRabbitMQUri(\"amqps://username:password@bonobo.rmq.cloudamqp.com/random\")\n\n\tpub := publisher.GetPublisher()\n\tpub.Connect()\n\terr := pub.CreateChannel(\"demoChannel\")\n\thelpers.FailOnError(err, \"Failed to create channel on publisher\")\n\terr = pub.Publish([]byte(\"Hello RabbitMQ from demoChannel!!!\"))\n\thelpers.FailOnError(err, \"Fail to publish message\")\n\tpub.Close()\n\n\tcon := consumer.GetConsumer()\n\tcon.Connect()\n\terr = con.CreateChannel(\"demoChannel\")\n\thelpers.FailOnError(err, \"Failed to create channel on publisher\")\n\tmessages, err := con.Consume()\n\n\tfor message := range messages {\n\t\tlog.Println(string(message.Body))\n\t\tif message.Body != nil {\n\t\t\tcon.Close()\n\t\t\tbreak\n\t\t}\n\t}\n}\n```\n\n#### Output:\n\n```sh\n2021/09/13 23:54:41 Hello RabbitMQ from demoChannel!!!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaswata56%2Fgrabbitmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaswata56%2Fgrabbitmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaswata56%2Fgrabbitmq/lists"}