Registry / networking / processout-grpc-go-pool

processout-grpc-go-pool

JSON →
library1.3.0gogounverified

Package grpcpool provides a pool of gRPC clients.

go get github.com/processout/grpc-go-pool
INSTALL
IMPORT
SIG · PROCESSOUT-GRPC-GO
P
processout-grpc-go-pool
networkinggov1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grpcpool
github.com/processout/grpc-go-pool

Create a gRPC connection pool with min 1, max 3 connections.

package main import ( "fmt" "github.com/processout/grpc-go-pool" ) func main() { pool, err := grpcpool.New(func() (*grpc.ClientConn, error) { return grpc.Dial("localhost:50051", grpc.WithInsecure()) }, 1, 3, 0) if err != nil { panic(err) } defer pool.Close() fmt.Println("Pool created") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
processout-grpc-go-pool — go get processout-grpc-go-pool · libregistry