Documentation
¶
Index ¶
- func NewDialer() network.Dialer
- func NewTransporter(options *config.Options) network.Transporter
- type Conn
- func (c *Conn) Flush() error
- func (c *Conn) HandleSpecificError(err error, rip string) (needIgnore bool)
- func (c *Conn) IsHealthy(probeTimeout, ownerWaitTimeout time.Duration) bool
- func (c *Conn) Len() int
- func (c *Conn) Malloc(n int) (buf []byte, err error)
- func (c *Conn) Peek(n int) (b []byte, err error)
- func (c *Conn) Read(p []byte) (int, error)
- func (c *Conn) ReadBinary(n int) (b []byte, err error)
- func (c *Conn) ReadByte() (b byte, err error)
- func (c *Conn) Release() error
- func (c *Conn) Skip(n int) error
- func (c *Conn) ToHertzError(err error) error
- func (c *Conn) WriteBinary(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransporter ¶
func NewTransporter(options *config.Options) network.Transporter
For transporter switch
Types ¶
type Conn ¶
func (*Conn) HandleSpecificError ¶ added in v0.1.0
func (*Conn) IsHealthy ¶ added in v0.10.6
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) ToHertzError ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.