{"id":43128483,"url":"https://github.com/devimteam/amqp","last_synced_at":"2026-01-31T20:52:36.304Z","repository":{"id":57489213,"uuid":"122321838","full_name":"devimteam/amqp","owner":"devimteam","description":"Golang AMQP wrapper","archived":false,"fork":false,"pushed_at":"2019-04-05T14:50:07.000Z","size":86,"stargazers_count":10,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-18T23:06:59.240Z","etag":null,"topics":["amqp","amqp-client","go","golang"],"latest_commit_sha":null,"homepage":null,"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/devimteam.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}},"created_at":"2018-02-21T10:26:54.000Z","updated_at":"2022-03-27T05:15:21.000Z","dependencies_parsed_at":"2022-08-29T22:11:50.823Z","dependency_job_id":null,"html_url":"https://github.com/devimteam/amqp","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/devimteam/amqp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devimteam%2Famqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devimteam%2Famqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devimteam%2Famqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devimteam%2Famqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devimteam","download_url":"https://codeload.github.com/devimteam/amqp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devimteam%2Famqp/sbom","scorecard":{"id":337650,"data":{"date":"2025-08-11","repo":{"name":"github.com/devimteam/amqp","commit":"f6c62929db1c871fc46e38744655e31e830183ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/17 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-r4m4-pmvw-m6j5","Warn: Project is vulnerable to: GO-2021-0101","Warn: Project is vulnerable to: GO-2021-0053 / GHSA-c3h9-896r-86jm","Warn: Project is vulnerable to: GO-2022-0197 / GHSA-4r78-hx75-jjj2 / GHSA-mv93-wvcp-7m7r","Warn: Project is vulnerable to: GO-2020-0014 / GHSA-vfw5-hrgq-h5wf","Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T05:07:41.022Z","repository_id":57489213,"created_at":"2025-08-18T05:07:41.023Z","updated_at":"2025-08-18T05:07:41.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28954393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","amqp-client","go","golang"],"created_at":"2026-01-31T20:52:36.211Z","updated_at":"2026-01-31T20:52:36.293Z","avatar_url":"https://github.com/devimteam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMQP\nGolang AMQP wrapper is a library that wraps [amqp](https://github.com/streadway/amqp).\n\nCheck out the [docs](https://godoc.org/github.com/devimteam/amqp).\n\n### Features\n* Auto-reconnect to brocker and auto redeclare exchanges and queues.\n* Control channels lifecycle: open new on high load and close unused.\n* Declarative style.\n    ```go\n    client, err := amqp.NewClient(\n    \tconn.DefaultConnector(\"amqp://localhost:5672\",\n    \t\tconn.WithLogger(lg), // We want to know connection status and errors.\n    \t),\n    \tamqp.TemporaryExchange(\"example-exchange\"), // Declare exchanges and queues.\n    \tamqp.PersistentExchanges(\n    \t\t\"exchange-one\",\n    \t\t\"exchange-two\",\n    \t\t\"exchange-three\",\n    \t),\n    \tamqp.PersistentQueues(\n    \t\t\"queue for one\",\n    \t\t\"queue for two\",\n    \t\t\"second queue for two\",\n    \t),\n    \tamqp.Exchange{\n    \t\tName: \"declare directly\",\n    \t},\n    \tamqp.Queue{\n    \t\tName: \"\", // left empty, broker generates name for you.\n    \t},\n    \tamqp.Binding{ // do not forget to bind queue to exchange.\n    \t\tExchange: \"exchange-one\",\n    \t\tQueue:    \"queue for one\",\n    \t},\n    \tamqp.WithLogger{Logger: lg}, // We want to know AMQP protocol errors.\n    )\n    ```\n* Encoding and decoding hiden inside.\n    * Use [Codec](https://godoc.org/github.com/devimteam/amqp/codecs#Codec) interface for your format.\n    * XML, JSON and Protocol Buffers (protobuf) registered yet.\n* Tons of options.\n    * Min and max opened channels per publisher/subscriber.\n    * Limit receiving messages.\n    * Any amount of data formats.\n    * Fill all message fields as you wish.\n    * And more others...\n* Everything from [AMQP](https://github.com/streadway/amqp) may be used directly.\n\n## Contributing\nWe are waiting for your issue or pull request.\n## Example\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/devimteam/amqp\"\n\t\"github.com/devimteam/amqp/conn\"\n\t\"github.com/devimteam/amqp/logger\"\n)\n\n// Data, that we want to deal with.\ntype Comment struct {\n\tId      string\n\tMessage string\n}\n\nfunc main() {\n\tch := make(chan []interface{})\n\t// Listens errors and writes them to stdout.\n\tgo func() {\n\t\tfor l := range ch {\n\t\t\tfmt.Println(l...)\n\t\t}\n\t}()\n\tlg := logger.NewChanLogger(ch) // Logger interface identical to go-kit Logger.\n\tclient, err := amqp.NewClient(\n\t\tconn.DefaultConnector(\"amqp://localhost:5672\",\n\t\t\tconn.WithLogger(lg), // We want to know connection status and errors.\n\t\t),\n\t\tamqp.TemporaryExchange(\"example-exchange\"), // Declare exchanges and queues.\n\t\tamqp.WithLogger{Logger:lg}, // We want to know AMQP protocol errors.\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tsubscr := client.Subscriber()\n\t// context used here as closing mechanism.\n\teventChan := subscr.SubscribeToExchange(context.Background(),\"example-exchange\", Comment{}, amqp.Consumer{})\n\tgo func() {\n\t\tfor event := range eventChan {\n\t\t\tfmt.Println(event.Data) // do something with events\n\t\t}\n\t}()\n\tpubsr:=client.Publisher()\n\tfor i := 0; i \u003c 10; i++ {\n\t\t// Prepare your data before publishing\n\t\tcomment := Comment{\n\t\t\tId:      strconv.Itoa(i),\n\t\t\tMessage: \"message \" + strconv.Itoa(i),\n\t\t}\n\t\t// Context used here for passing data to `before` functions.\n\t\terr := pubsr.Publish(context.Background(), \"example-exchange\", comment, amqp.Publish{})\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\ttime.Sleep(time.Millisecond * 500)\n\t}\n\ttime.Sleep(time.Second * 5) // wait for delivering all messages.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevimteam%2Famqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevimteam%2Famqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevimteam%2Famqp/lists"}