Help us shape the future of Go! Take the 2026 Go Developer Survey

netpoll

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 14 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer() network.Dialer

func NewTransporter

func NewTransporter(options *config.Options) network.Transporter

For transporter switch

Types

type Conn

type Conn struct {
	network.Conn
}

func (*Conn) Flush

func (c *Conn) Flush() error

func (*Conn) HandleSpecificError added in v0.1.0

func (c *Conn) HandleSpecificError(err error, rip string) (needIgnore bool)

func (*Conn) IsHealthy added in v0.10.6

func (c *Conn) IsHealthy(probeTimeout, ownerWaitTimeout time.Duration) bool

IsHealthy checks whether an idle pooled connection is safe to reuse without consuming application data. probeTimeout bounds the fallback timed Peek; ownerWaitTimeout bounds waiting for the netpoll operator. The owner-side probe itself is non-blocking once acquired.

func (*Conn) Len

func (c *Conn) Len() int

func (*Conn) Malloc

func (c *Conn) Malloc(n int) (buf []byte, err error)

func (*Conn) Peek

func (c *Conn) Peek(n int) (b []byte, err error)

func (*Conn) Read added in v0.5.0

func (c *Conn) Read(p []byte) (int, error)

func (*Conn) ReadBinary

func (c *Conn) ReadBinary(n int) (b []byte, err error)

func (*Conn) ReadByte

func (c *Conn) ReadByte() (b byte, err error)

func (*Conn) Release

func (c *Conn) Release() error

func (*Conn) Skip

func (c *Conn) Skip(n int) error

func (*Conn) ToHertzError added in v0.5.0

func (c *Conn) ToHertzError(err error) error

func (*Conn) WriteBinary

func (c *Conn) WriteBinary(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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