{"id":41238363,"url":"https://github.com/flyaways/pool","last_synced_at":"2026-01-23T01:12:44.531Z","repository":{"id":57482546,"uuid":"134155815","full_name":"flyaways/pool","owner":"flyaways","description":"General Purpose Connection Pool for GRPC,RPC,TCP Sevice Cluster","archived":false,"fork":false,"pushed_at":"2024-08-08T11:54:00.000Z","size":147,"stargazers_count":135,"open_issues_count":3,"forks_count":35,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T12:48:38.344Z","etag":null,"topics":["connection-pool","golang","grpc","pool","rpc","tcp"],"latest_commit_sha":null,"homepage":"https://flyaways.github.io/pool/","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/flyaways.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-20T14:06:30.000Z","updated_at":"2024-11-13T03:23:00.000Z","dependencies_parsed_at":"2023-12-07T14:25:41.288Z","dependency_job_id":"458304d4-038b-4014-acd3-e2678ded6795","html_url":"https://github.com/flyaways/pool","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/flyaways/pool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyaways%2Fpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyaways%2Fpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyaways%2Fpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyaways%2Fpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyaways","download_url":"https://codeload.github.com/flyaways/pool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyaways%2Fpool/sbom","scorecard":{"id":405019,"data":{"date":"2025-08-11","repo":{"name":"github.com/flyaways/pool","commit":"094002214a51c997c1fbdefdf30c7fa79a8b8a8b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"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 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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-18T20:58:36.261Z","repository_id":57482546,"created_at":"2025-08-18T20:58:36.261Z","updated_at":"2025-08-18T20:58:36.261Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: 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":["connection-pool","golang","grpc","pool","rpc","tcp"],"created_at":"2026-01-23T01:12:44.003Z","updated_at":"2026-01-23T01:12:44.526Z","avatar_url":"https://github.com/flyaways.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pool\n\n[![GoDoc](https://godoc.org/github.com/flyaways/pool?status.svg)](https://godoc.org/github.com/flyaways/pool)\n[![Go Report Card](https://goreportcard.com/badge/github.com/flyaways/pool?style=flat-square)](https://goreportcard.com/report/github.com/flyaways/pool)\n[![Sourcegraph](https://sourcegraph.com/github.com/flyaways/pool/-/badge.svg)](https://sourcegraph.com/github.com/flyaways/pool?badge)\n[![Open Source Helpers](https://www.codetriage.com/flyaways/pool/badges/users.svg)](https://www.codetriage.com/flyaways/pool)\n[![LICENSE](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat-square)](https://github.com/flyaways/pool/blob/master/LICENSE)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/flyaways/pool.svg)\n[![Release](https://img.shields.io/github/release/flyaways/pool.svg?style=flat-square)](https://github.com/flyaways/pool/releases)\n[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)\n\n\nPool is Used to manage and reuse client connections to service cluster.\n\nPool provides several key features:\n\n* **General Purpose** - Pool for GRPC,RPC,TCP.support RPC timeout.\n\n* **Support Cluster** - Connet to Cluster.\n\n* **Danamic Update** - Danamic update targets.\n\nPool runs on Linux, Mac OS X, and Windows.\n\n**Note**: Random to pick a target to get one connection for loadbalance.\n\n## Install\n```sh\ngo get -u gopkg.in/flyaways/pool.v1\n```\n## Usage\n\n```go\nimport \"gopkg.in/flyaways/pool.v1\"\n```\n\n## Example\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"time\"\n\n\t\"gopkg.in/flyaways/pool.v1\"\n\t\"google.golang.org/grpc\"\n)\n\nfunc main() {\n\toptions := \u0026pool.Options{\n\t\tInitTargets:  []string{\"127.0.0.1:8080\"},\n\t\tInitCap:      5,\n\t\tMaxCap:       30,\n\t\tDialTimeout:  time.Second * 5,\n\t\tIdleTimeout:  time.Second * 60,\n\t\tReadTimeout:  time.Second * 5,\n\t\tWriteTimeout: time.Second * 5,\n\t}\n\n\t\n\tp, err := pool.NewGRPCPool(options, grpc.WithInsecure())//for grpc\n\t//p, err := pool.NewRPCPool(options) \t\t\t//for rpc\n\t//p, err := pool.NewTCPPool(options)\t\t\t//for tcp\n\n\tif err != nil {\n\t\tlog.Printf(\"%#v\\n\", err)\n\t\treturn\n\t}\n\n\tif p == nil {\n\t\tlog.Printf(\"p= %#v\\n\", p)\n\t\treturn\n\t}\n\n\tdefer p.Close()\n\n\t//todo\n\t//danamic update targets\n\t//options.Input()\u003c-\u0026[]string{}\n\n\tconn, err := p.Get()\n\tif err != nil {\n\t\tlog.Printf(\"%#v\\n\", err)\n\t\treturn\n\t}\n\n\tdefer p.Put(conn)\n\n\t//todo\n\t//conn.DoSomething()\n\n\tlog.Printf(\"len=%d\\n\", p.IdleCount())\n}\n\n```\n\n## Reference\n * [https://github.com/fatih/pool](https://github.com/fatih/pool)\n * [https://github.com/silenceper/pool]( https://github.com/silenceper/pool)\n * [https://github.com/daizuozhuo/rpc-example]( https://github.com/daizuozhuo/rpc-example)\n \n## Contribution Welcomed !\n\nContributors\n\n* [flyaways](https://github.com/flyaways) \n\n## License\n* The MIT License (MIT) - see LICENSE for more details\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fflyaways%2Fpool.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fflyaways%2Fpool?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyaways%2Fpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyaways%2Fpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyaways%2Fpool/lists"}