{"id":25121670,"url":"https://github.com/backaged/steadyrabbit","last_synced_at":"2025-04-22T23:23:06.545Z","repository":{"id":54957773,"uuid":"309456695","full_name":"BackAged/steadyrabbit","owner":"BackAged","description":"Stable go rabbitmq client","archived":false,"fork":false,"pushed_at":"2021-01-19T19:44:42.000Z","size":49,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T19:51:12.444Z","etag":null,"topics":["go","go-rabbitmq","golang","rabbitmq","rabbitmq-client"],"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/BackAged.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":"2020-11-02T18:14:15.000Z","updated_at":"2023-03-05T08:34:38.000Z","dependencies_parsed_at":"2022-08-14T07:20:51.986Z","dependency_job_id":null,"html_url":"https://github.com/BackAged/steadyrabbit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackAged%2Fsteadyrabbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackAged%2Fsteadyrabbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackAged%2Fsteadyrabbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BackAged%2Fsteadyrabbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BackAged","download_url":"https://codeload.github.com/BackAged/steadyrabbit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338636,"owners_count":21414220,"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":["go","go-rabbitmq","golang","rabbitmq","rabbitmq-client"],"created_at":"2025-02-08T06:32:43.929Z","updated_at":"2025-04-22T23:23:06.503Z","avatar_url":"https://github.com/BackAged.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# steadyrabbit\n\nsteadyrabbit is a library for  working with rabbitmq\n\n\n## Usage\n\n```\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/BackAged/steadyrabbit\"\n\t\"github.com/streadway/amqp\"\n)\n\nfunc main() {\n\tp, err := steadyrabbit.NewPublisher(\u0026steadyrabbit.Config{\n\t\tURL: \"amqp://localhost\",\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"unable to instantiate publisher: %s\", err)\n\t}\n\n\tqueueName := \"shahin\"\n\n\tif err = p.Publish(context.Background(), queueName, []byte(\"shahin\")); err != nil {\n\t\tlog.Fatalf(\"unable to publish message: %s\", err)\n\t}\n\n\tc, err := steadyrabbit.NewConsumer(\u0026steadyrabbit.Config{\n\t\tURL: \"amqp://localhost\",\n\t\tConsumer: \u0026steadyrabbit.ConsumerConfig{\n\t\t\tQueueConfig: \u0026steadyrabbit.QueueConfig{\n\t\t\t\tQueueName:    queueName,\n\t\t\t\tQueueDeclare: true,\n\t\t\t\tQueueDurable: true,\n\t\t\t},\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatalf(\"unable to instantiate consumer: %s\", err)\n\t}\n\n\tc.Consume(context.Background(), func(msg amqp.Delivery) error {\n\t\tlog.Println(\"got message: \", msg)\n\t\treturn msg.Ack(false)\n\t})\n\n}\n```\n\n\n## License\nNone","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackaged%2Fsteadyrabbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbackaged%2Fsteadyrabbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackaged%2Fsteadyrabbit/lists"}