{"id":15287490,"url":"https://github.com/shimingyah/pool","last_synced_at":"2025-04-09T13:09:51.637Z","repository":{"id":43108390,"uuid":"190134880","full_name":"shimingyah/pool","owner":"shimingyah","description":"Connection pool for Go's grpc client with supports connection reuse.","archived":false,"fork":false,"pushed_at":"2022-07-09T06:50:00.000Z","size":27,"stargazers_count":208,"open_issues_count":10,"forks_count":49,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T07:51:15.583Z","etag":null,"topics":["go","grpc","pool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shimingyah.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":"2019-06-04T05:24:34.000Z","updated_at":"2025-03-26T01:32:50.000Z","dependencies_parsed_at":"2022-08-29T20:20:26.202Z","dependency_job_id":null,"html_url":"https://github.com/shimingyah/pool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimingyah%2Fpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimingyah%2Fpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimingyah%2Fpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimingyah%2Fpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimingyah","download_url":"https://codeload.github.com/shimingyah/pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045245,"owners_count":21038554,"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":["go","grpc","pool"],"created_at":"2024-09-30T15:29:33.524Z","updated_at":"2025-04-09T13:09:51.612Z","avatar_url":"https://github.com/shimingyah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pool\n[![GoDoc](https://godoc.org/github.com/shimingyah/pool?status.svg)](https://godoc.org/github.com/shimingyah/pool)\n[![Go Report Card](https://goreportcard.com/badge/github.com/shimingyah/pool?style=flat-square)](https://goreportcard.com/report/github.com/shimingyah/pool)\n[![LICENSE](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat-square)](https://github.com/shimingyah/pool/blob/master/LICENSE)\n\nConnection pool for Go's grpc client that supports connection reuse.\n\nPool provides additional features:\n\n* `Connection reuse` supported by specific MaxConcurrentStreams param.\n* `Failure reconnection` supported by grpc's keepalive.\n\n# Getting started\n\n## Install\n\nImport package:\n\n```\nimport (\n    \"github.com/shimingyah/pool\"\n)\n```\n\n```\ngo get github.com/shimingyah/pool\n```\n\n# Usage\n\n```\np, err := pool.New(\"127.0.0.1:8080\", pool.DefaultOptions)\nif err != nil {\n    log.Fatalf(\"failed to new pool: %v\", err)\n}\ndefer p.Close()\n\nconn, err := p.Get()\nif err != nil {\n    log.Fatalf(\"failed to get conn: %v\", err)\n}\ndefer conn.Close()\n\n// cc := conn.Value()\n// client := pb.NewClient(conn.Value())\n```\nSee the complete example: [https://github.com/shimingyah/pool/tree/master/example](https://github.com/shimingyah/pool/tree/master/example)\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\n# License\n\nPool is under the Apache 2.0 license. See the [LICENSE](https://github.com/shimingyah/pool/blob/master/LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimingyah%2Fpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimingyah%2Fpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimingyah%2Fpool/lists"}