conn

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxConnIdleIODuration = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	io.Closer
	Conn() net.Conn
	SendClosed() bool
	ReceiveClosed() bool
}

func WrapConnection

func WrapConnection(ctx context.Context, conn net.Conn, toRemoteCh chan []byte, fromRemoteCh chan *bytebufferpool.ByteBuffer, errCh chan error, skip SkipFilter) Connection

type ConnectionImpl

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

func (*ConnectionImpl) Close

func (a *ConnectionImpl) Close() error

func (*ConnectionImpl) Conn

func (a *ConnectionImpl) Conn() net.Conn

func (*ConnectionImpl) ReceiveClosed

func (a *ConnectionImpl) ReceiveClosed() bool

func (*ConnectionImpl) SendClosed

func (a *ConnectionImpl) SendClosed() bool

type SkipFilter

type SkipFilter func(proto.Header) bool

SkipFilter indicates that the network message should be skipped.

Jump to

Keyboard shortcuts

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