Categorygithub.com/gjbae1212/go-grpcpool
modulepackage
1.0.4
Repository: https://github.com/gjbae1212/go-grpcpool.git
Documentation: pkg.go.dev

# README

go-grpcpool

license

go-gprcpool is a pool for GRPC connections.
It's a library for golang.

Getting Started

Install

$ go get -u github.com/gjbae1212/go-grpcpool

Usage

// 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.

# Functions

NewPool returns GRPC pool interface.
WithExpireTimeout returns a function which sets max life time.
WithIdleTimeout returns a function which sets idle duration.
WithLazyLoading returns a function which make a decision such as lazy loading or not.
WithMaxRequestCount returns a function which sets max request count.
WithPoolSize returns a function which sets pool size.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author