transport

package
v0.0.0-...-b0a49f2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func NewPool

func NewPool(opts *PoolOptions) (*Pool, error)

func (*Pool) Close

func (c *Pool) Close()

func (*Pool) ClosePool

func (c *Pool) ClosePool(addr string)

func (*Pool) Conn

func (c *Pool) Conn(ctx context.Context, addr string) (*grpcpool.ClientConn, error)

type PoolOptions

type PoolOptions struct {
	NewConn         func(addr string) (*grpc.ClientConn, error)
	IdleTimeout     time.Duration
	MaxLifeDuration time.Duration
	Init            int
	Capacity        int
}

Jump to

Keyboard shortcuts

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