connpool

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 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 RingConnPool

type RingConnPool struct{ *ring_client.Pool }

func (*RingConnPool) GetConnFor

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

Jump to

Keyboard shortcuts

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