connpool

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnPoolFactory

func NewConnPoolFactory(options func(ring.InstanceDesc) []grpc.DialOption) ring_client.PoolFactory

Types

type ConnFactory

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

func (*ConnFactory) FromInstance

func (f *ConnFactory) FromInstance(inst ring.InstanceDesc) (ring_client.PoolClient, error)

type ConnPool

type ConnPool interface {
	GetConnFor(addr string) (grpc.ClientConnInterface, error)
	services.Service
}

type Pool

type Pool struct{ *ring_client.Pool }

func (*Pool) GetConnFor

func (p *Pool) GetConnFor(addr string) (grpc.ClientConnInterface, error)

Jump to

Keyboard shortcuts

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