Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxConnIdleIODuration = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
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 ¶
SkipFilter indicates that the network message should be skipped.
Click to show internal directories.
Click to hide internal directories.