{"id":43746259,"url":"https://github.com/fairyhunter13/rabbitmqclient","last_synced_at":"2026-02-05T12:35:04.175Z","repository":{"id":140193152,"uuid":"253270541","full_name":"fairyhunter13/rabbitmqclient","owner":"fairyhunter13","description":"Rabbitmqclient is built using \"fairyhunter13/amqpwrapper\". This client manages publishers and consumers of RabbitMQ.","archived":false,"fork":false,"pushed_at":"2022-08-13T21:13:16.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T11:53:39.221Z","etag":null,"topics":["amqp","amqpwrapper","client","consumer","exchange","go","golang","producer","producer-consumer","publish-subscribe","publisher","queue","rabbitmq","rabbitmq-network","rabbitmq-topology","rabbitmqclient","subscriber"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fairyhunter13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-05T15:44:14.000Z","updated_at":"2023-05-29T06:50:23.000Z","dependencies_parsed_at":"2024-06-20T11:04:57.686Z","dependency_job_id":"2d455b8c-6f1c-4bc3-b3a2-f85ca75abf2d","html_url":"https://github.com/fairyhunter13/rabbitmqclient","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/fairyhunter13/rabbitmqclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairyhunter13%2Frabbitmqclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairyhunter13%2Frabbitmqclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairyhunter13%2Frabbitmqclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairyhunter13%2Frabbitmqclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fairyhunter13","download_url":"https://codeload.github.com/fairyhunter13/rabbitmqclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairyhunter13%2Frabbitmqclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29121793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["amqp","amqpwrapper","client","consumer","exchange","go","golang","producer","producer-consumer","publish-subscribe","publisher","queue","rabbitmq","rabbitmq-network","rabbitmq-topology","rabbitmqclient","subscriber"],"created_at":"2026-02-05T12:35:03.446Z","updated_at":"2026-02-05T12:35:04.166Z","avatar_url":"https://github.com/fairyhunter13.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"بِسْمِ اللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ\n\n\u003cbr/\u003e\n\nالسَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ\n\n\u003cbr/\u003e\n\nٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ\n\nٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ\n\nٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ\n\n\u003cbr/\u003e\n\nاللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ ، وَعَلَى آلِ مُحَمَّدٍ ، كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَعَلَى آلِ إِبْرَاهِيمَ ، إِنَّكَ حَمِيدٌ مَجِيدٌ ، اللَّهُمَّ بَارِكْ عَلَى مُحَمَّدٍ ، وَعَلَى آلِ مُحَمَّدٍ ، كَمَا بَارَكْتَ عَلَى إِبْرَاهِيمَ ، وَعَلَى آلِ إِبْرَاهِيمَ ، إِنَّكَ حَمِيدٌ مَجِيدٌ\n\n# RabbitMQ Client\n[![Coverage Status](https://coveralls.io/repos/github/fairyhunter13/rabbitmqclient/badge.svg?branch=master)](https://coveralls.io/github/fairyhunter13/rabbitmqclient?branch=master)\n[![CircleCI](https://circleci.com/gh/fairyhunter13/amqpwrapper.svg?style=svg)](https://circleci.com/gh/fairyhunter13/amqpwrapper)\n[![Go Report Card](https://goreportcard.com/badge/github.com/fairyhunter13/rabbitmqclient)](https://goreportcard.com/report/github.com/fairyhunter13/rabbitmqclient)\n\u003ca title=\"Doc for rabbitmqclient\" target=\"_blank\" href=\"https://pkg.go.dev/github.com/fairyhunter13/rabbitmqclient?tab=doc\"\u003e\u003cimg src=\"https://img.shields.io/badge/go.dev-doc-007d9c?style=flat-square\u0026logo=read-the-docs\"\u003e\u003c/a\u003e\n\nThe rabbitmq client is built using the [fairyhunter13/amqpwrapper](https://github.com/fairyhunter13/amqpwrapper) package.\nThis package can manage the topology of queue's network inside the RabbitMQ.\nThis package simplifies the management and usage of publishing and consuming for RabbitMQ.\n\n# Example\n\nThis is an example how to use this package.\n\n## Publish and Subscribe\nThis is an example of go code to publish and subscribe using this package.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/fairyhunter13/amqpwrapper\"\n\t\"github.com/fairyhunter13/rabbitmqclient\"\n\t\"github.com/streadway/amqp\"\n)\n\nfunc main() {\n\turiHost := fmt.Sprintf(\"amqp://guest:guest@%s:5672\", \"localhost\")\n\tconn, err := amqpwrapper.NewManager(uriHost, amqp.Config{})\n\tif err != nil {\n\t\tlog.Panicln(err)\n\t}\n\n\tcontainer, err := rabbitmqclient.NewContainer(conn)\n\tif err != nil {\n\t\tlog.Panicln(err)\n\t}\n\n\terr = container.\n\t\tSetExchangeName(\"integration-test\").\n\t\tPublish(\n\t\t\t\"\",\n\t\t\t\"example\",\n\t\t\t*new(rabbitmqclient.OtherPublish).\n\t\t\t\tSetPersistent().\n\t\t\t\tSetBody([]byte(\"test payload\")),\n\t\t)\n\tif err != nil {\n\t\tlog.Panicln(err)\n\t}\n\n\tvar result string\n\ttestHandler := func(ch *amqp.Channel, msg amqp.Delivery) {\n\t\tmsg.Ack(false)\n\t\tresult = string(msg.Body)\n\t}\n\terr = container.\n\t\tConsumer().\n\t\tSetTopic(\"example\").\n\t\tConsume(0, testHandler)\n\tif err != nil {\n\t\tlog.Panicln(err)\n\t}\n\n\ttime.Sleep(2 * time.Second)\n\tif result != \"test payload\" {\n\t\tlog.Panicf(\"Expected: %v Actual: %v doesn't match.\", \"test payload\", result)\n\t}\n}\n```\n\n## Topology\nFor this example, see this [test code](integration_test.go) inside `TestRabbitMQNetwork` function.\n\n# Author\n**fairyhunter13**\n\n# License\nThe source code inside this package is available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairyhunter13%2Frabbitmqclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairyhunter13%2Frabbitmqclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairyhunter13%2Frabbitmqclient/lists"}