pool

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionPool

type ConnectionPool interface {
	GetConnection(ctx context.Context, host *legacyhost.Host) (io.ReadWriter, error)
	CloseConnection(ctx context.Context, host *legacyhost.Host)
	Reset()
}

ConnectionPool interface provides methods to manage pool of network connections

func NewConnectionPool

func NewConnectionPool(t transport.StreamTransport) ConnectionPool

NewConnectionPool constructor creates new ConnectionPool

Jump to

Keyboard shortcuts

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