{"id":21951885,"url":"https://github.com/go-coldbrew/grpcpool","last_synced_at":"2026-05-18T19:36:55.634Z","repository":{"id":153086545,"uuid":"627719648","full_name":"go-coldbrew/grpcpool","owner":"go-coldbrew","description":"grpcpool is a pool of grpc.ClientConns","archived":false,"fork":false,"pushed_at":"2024-04-19T13:19:25.000Z","size":93,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-21T09:55:25.261Z","etag":null,"topics":["connection-pool","grpc","load-balancer"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-coldbrew.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}},"created_at":"2023-04-14T03:50:19.000Z","updated_at":"2023-04-16T04:37:48.000Z","dependencies_parsed_at":"2024-03-07T05:35:08.783Z","dependency_job_id":null,"html_url":"https://github.com/go-coldbrew/grpcpool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/go-coldbrew/grpcpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-coldbrew%2Fgrpcpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-coldbrew%2Fgrpcpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-coldbrew%2Fgrpcpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-coldbrew%2Fgrpcpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-coldbrew","download_url":"https://codeload.github.com/go-coldbrew/grpcpool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-coldbrew%2Fgrpcpool/sbom","scorecard":{"id":431547,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-coldbrew/grpcpool","commit":"458a04151dfa925eca8678aa85bc8eb4ca5589a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/go-coldbrew/grpcpool/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/go-coldbrew/grpcpool/go.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3754 / GHSA-2x5j-vhc8-9cwm","Warn: Project is vulnerable to: GO-2025-3367 / GHSA-r9px-m959-cxf4","Warn: Project is vulnerable to: GO-2025-3368 / GHSA-v725-9546-7q7m","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","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-19T03:28:04.876Z","repository_id":153086545,"created_at":"2025-08-19T03:28:04.876Z","updated_at":"2025-08-19T03:28:04.876Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431287,"owners_count":25104491,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["connection-pool","grpc","load-balancer"],"created_at":"2024-11-29T06:18:01.965Z","updated_at":"2026-05-18T19:36:55.616Z","avatar_url":"https://github.com/go-coldbrew.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Code generated by gomarkdoc. DO NOT EDIT --\u003e\n\n[![CI](https://github.com/go-coldbrew/grpcpool/actions/workflows/go.yml/badge.svg)](https://github.com/go-coldbrew/grpcpool/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-coldbrew/grpcpool)](https://goreportcard.com/report/github.com/go-coldbrew/grpcpool)\n[![GoDoc](https://pkg.go.dev/badge/github.com/go-coldbrew/grpcpool.svg)](https://pkg.go.dev/github.com/go-coldbrew/grpcpool)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n\n# grpcpool\n\n```go\nimport \"github.com/go-coldbrew/grpcpool\"\n```\n\ngrpcpool is a pool of grpc.ClientConns. It implements grpc.ClientConnInterface to enable it to be used directly with generated proto stubs. It is based on https://github.com/googleapis/google-api-go-client/blob/v0.115.0/transport/grpc/pool.go\n\n## Index\n\n- [type ConnPool](\u003c#ConnPool\u003e)\n  - [func Dial\\(target string, num uint, opts ...grpc.DialOption\\) \\(ConnPool, error\\)](\u003c#Dial\u003e)\n  - [func DialContext\\(\\_ context.Context, target string, num uint, opts ...grpc.DialOption\\) \\(ConnPool, error\\)](\u003c#DialContext\u003e)\n  - [func New\\(conns \\[\\]\\*grpc.ClientConn\\) ConnPool](\u003c#New\u003e)\n\n\n\u003ca name=\"ConnPool\"\u003e\u003c/a\u003e\n## type [ConnPool](\u003chttps://github.com/go-coldbrew/grpcpool/blob/main/pool.go#L16-L34\u003e)\n\nConnPool is a pool of grpc.ClientConns.\n\n```go\ntype ConnPool interface {\n    // Conn returns a ClientConn from the pool.\n    //\n    // Conns aren't returned to the pool.\n    Conn() *grpc.ClientConn\n\n    // Num returns the number of connections in the pool.\n    //\n    // It will always return the same value.\n    Num() int\n\n    // Close closes every ClientConn in the pool.\n    //\n    // The error returned by Close may be a single error or multiple errors.\n    Close() error\n\n    // ConnPool implements grpc.ClientConnInterface to enable it to be used directly with generated proto stubs.\n    grpc.ClientConnInterface\n}\n```\n\n\u003ca name=\"Dial\"\u003e\u003c/a\u003e\n### func [Dial](\u003chttps://github.com/go-coldbrew/grpcpool/blob/main/pool.go#L107\u003e)\n\n```go\nfunc Dial(target string, num uint, opts ...grpc.DialOption) (ConnPool, error)\n```\n\nDial creates a new ConnPool with num connections to target.\n\n\u003ca name=\"DialContext\"\u003e\u003c/a\u003e\n### func [DialContext](\u003chttps://github.com/go-coldbrew/grpcpool/blob/main/pool.go#L85\u003e)\n\n```go\nfunc DialContext(_ context.Context, target string, num uint, opts ...grpc.DialOption) (ConnPool, error)\n```\n\nDialContext creates a new ConnPool with num connections to target.\n\nNote: The ctx parameter is retained for backward compatibility but is not used. Cancellation and deadlines in ctx do not affect connection creation.\n\n\u003ca name=\"New\"\u003e\u003c/a\u003e\n### func [New](\u003chttps://github.com/go-coldbrew/grpcpool/blob/main/pool.go#L74\u003e)\n\n```go\nfunc New(conns []*grpc.ClientConn) ConnPool\n```\n\nNew creates a new ConnPool from the given connections.\n\n\u003cdetails\u003e\u003csummary\u003eExample\u003c/summary\u003e\n\u003cp\u003e\n\n\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/go-coldbrew/grpcpool\"\n\t\"google.golang.org/grpc\"\n\t\"google.golang.org/grpc/credentials/insecure\"\n)\n\nfunc main() {\n\t// Create individual gRPC connections (NewClient is lazy — no real connection yet)\n\tconn1, err := grpc.NewClient(\"localhost:9090\",\n\t\tgrpc.WithTransportCredentials(insecure.NewCredentials()))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tconn2, err := grpc.NewClient(\"localhost:9090\",\n\t\tgrpc.WithTransportCredentials(insecure.NewCredentials()))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Create a round-robin pool from existing connections\n\tpool := grpcpool.New([]*grpc.ClientConn{conn1, conn2})\n\tdefer pool.Close()\n\n\tfmt.Println(\"pool size:\", pool.Num())\n}\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\nGenerated by [gomarkdoc](\u003chttps://github.com/princjef/gomarkdoc\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-coldbrew%2Fgrpcpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-coldbrew%2Fgrpcpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-coldbrew%2Fgrpcpool/lists"}