{"id":16316782,"url":"https://github.com/makasim/amqprpc","last_synced_at":"2025-06-26T14:32:39.580Z","repository":{"id":55989109,"uuid":"271843600","full_name":"makasim/amqprpc","owner":"makasim","description":"Go protocol agnostic RPC Client over AMQP.","archived":false,"fork":false,"pushed_at":"2020-12-02T16:47:25.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T19:48:22.305Z","etag":null,"topics":["amqp","go","golang","rabbitmq","rpc","rpc-client"],"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/makasim.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":"2020-06-12T16:30:45.000Z","updated_at":"2021-12-12T12:03:25.000Z","dependencies_parsed_at":"2022-08-15T10:50:55.815Z","dependency_job_id":null,"html_url":"https://github.com/makasim/amqprpc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Famqprpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Famqprpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Famqprpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makasim%2Famqprpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makasim","download_url":"https://codeload.github.com/makasim/amqprpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253970165,"owners_count":21992435,"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":["amqp","go","golang","rabbitmq","rpc","rpc-client"],"created_at":"2024-10-10T22:05:35.389Z","updated_at":"2025-05-13T15:30:50.968Z","avatar_url":"https://github.com/makasim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang AMQP RPC Client\n\nFeatures:\n\n* Protocol agnostic RPC Client over AMQP.\n* Can simultaneity talk to multiple servers.\n* Call cancellation.\n* Buffer multiple replies in a channel.\n* Separate publisher\\consumer connections.\n* Multiple consumer workers.\n* Auto reconnect.\n* Client close method wait for calls inflight to finish.\n\nExample:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"time\"\n\n\t\"github.com/makasim/amqpextra\"\n\t\"github.com/makasim/amqprpc\"\n\t\"github.com/streadway/amqp\"\n)\n\nfunc main() {\n\tconsumerConn := amqpextra.Dial([]string{\"amqp://guest:guest@rabbitmq:5672/amqprpc\"})\n\tpublisherConn := amqpextra.Dial([]string{\"amqp://guest:guest@rabbitmq:5672/amqprpc\"})\n\n\tclient, err := amqprpc.New(publisherConn, consumerConn)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer client.Close()\n\n\tcall := client.Go(amqpextra.Publishing{\n\t\tKey: \"a_queue\",\n\t\tMessage: amqp.Publishing{\n\t\t\tBody: []byte(`Have you heard the news?`),\n\t\t},\n\t}, make(chan *amqprpc.Call, 1))\n\tdefer call.Close()\n\n\tselect {\n\tcase \u003c-call.Done():\n\t\trpl, err := call.Delivery()\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\n\t\t\treturn\n\t\t}\n\n\t\tlog.Print(string(rpl.Body))\n\n\tcase \u003c-time.NewTimer(time.Second).C:\n        // timeout\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakasim%2Famqprpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakasim%2Famqprpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakasim%2Famqprpc/lists"}