grpcutil

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnPool

type ConnPool struct {
	// contains filtered or unexported fields
}

func NewConnPool

func NewConnPool(create CreateConnFunc, size int, reconnectInterval time.Duration, closeDelay time.Duration) *ConnPool

func (*ConnPool) Get

func (p *ConnPool) Get() *grpc.ClientConn

func (*ConnPool) Start

func (p *ConnPool) Start()

type CreateConnFunc

type CreateConnFunc func() (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL