https://github.com/gjbae1212/go-grpcpool
go-gprcpool is a pool for GRPC connections.
https://github.com/gjbae1212/go-grpcpool
go golang grpc pool
Last synced: 12 months ago
JSON representation
go-gprcpool is a pool for GRPC connections.
- Host: GitHub
- URL: https://github.com/gjbae1212/go-grpcpool
- Owner: gjbae1212
- License: mit
- Created: 2020-08-26T00:22:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T03:39:59.000Z (over 4 years ago)
- Last Synced: 2025-03-24T04:50:53.197Z (about 1 year ago)
- Topics: go, golang, grpc, pool
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-grpcpool
**go-gprcpool** is a pool for GRPC connections.
It's a library for **golang**.
## Getting Started
### Install
```bash
$ go get -u github.com/gjbae1212/go-grpcpool
```
### Usage
```go
// pseudo code
package main
import (
"context"
grpcpool "github.com/gjbae1212/go-grpcpool"
)
func main() {
pool, _ := grpcpool.New(func() (*grpc.ClientConn, error){
return nil, nil // a function which creates GRPC connection.
})
conn, _ := pool.GetConn()
}
```
## LICENSE
This project is following The MIT.