Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionID ¶
ConnectionID is the ID of a connection.
func NewConnectionID ¶
func NewConnectionID(source v2net.Address, dest v2net.Destination) ConnectionID
NewConnectionID creates a new ConnectionId.
type ConnectionRecyler ¶
type ConnectionRecyler interface { // Put returns a connection back to a connection pool. Put(ConnectionID, net.Conn) }
ConnectionRecyler is the interface for recycling connections.
type ExpiringConnection ¶
type ExpiringConnection struct {
// contains filtered or unexported fields
}
ExpiringConnection is a connection that will expire in certain time.
func (*ExpiringConnection) Expired ¶
func (ec *ExpiringConnection) Expired() bool
Expired returns true if the connection has expired.
Click to show internal directories.
Click to hide internal directories.