{"id":24824329,"url":"https://github.com/dudebing99/grpc-connection-pool","last_synced_at":"2025-03-25T23:18:37.777Z","repository":{"id":57559953,"uuid":"325564939","full_name":"dudebing99/grpc-connection-pool","owner":"dudebing99","description":"grpc client connection pool","archived":false,"fork":false,"pushed_at":"2022-03-11T09:27:16.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T20:39:11.124Z","etag":null,"topics":["grpc","grpc-client-connection-pool","grpc-client-pool","grpc-connection-pool","pool"],"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/dudebing99.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-12-30T14:01:34.000Z","updated_at":"2022-03-11T09:25:58.000Z","dependencies_parsed_at":"2022-08-26T07:01:00.868Z","dependency_job_id":null,"html_url":"https://github.com/dudebing99/grpc-connection-pool","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudebing99%2Fgrpc-connection-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudebing99%2Fgrpc-connection-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudebing99%2Fgrpc-connection-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dudebing99%2Fgrpc-connection-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dudebing99","download_url":"https://codeload.github.com/dudebing99/grpc-connection-pool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556980,"owners_count":20634896,"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":["grpc","grpc-client-connection-pool","grpc-client-pool","grpc-connection-pool","pool"],"created_at":"2025-01-30T20:29:24.651Z","updated_at":"2025-03-25T23:18:37.756Z","avatar_url":"https://github.com/dudebing99.png","language":"Go","readme":"# Usage\n```bash\ngo get github.com/dudebing99/grpc-connection-pool\n```\n\n# Example\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\trpc \"github.com/dudebing99/grpc-connection-pool\"\n)\n\nfunc main() {\n\tpool, err := rpc.NewRpcClientPool(rpc.WithServerAddr(\"0.0.0.0:8080\"))\n\tif err != nil {\n\t\tfmt.Println(\"init client pool error\")\n\t\treturn\n\t}\n\n\tclientConn, close, err := pool.Acquire()\n\tdefer close()\n\tif err != nil {\n\t\tfmt.Println(\"acquire client connection error\")\n\t\treturn\n\t}\n\n\tctx, cancel := context.WithCancel(context.Background())\n\tdefer cancel()\n\treply, err := NewGreeterClient(clientConn).SayHello(ctx, \u0026HelloRequest{Name: \"SillyBoy\"})\n\tif err != nil {\n\t\tfmt.Println(\"say hello error, \", err)\n\t\treturn\n\t}\n\n\tfmt.Println(reply.Message)\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudebing99%2Fgrpc-connection-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdudebing99%2Fgrpc-connection-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdudebing99%2Fgrpc-connection-pool/lists"}