Documentation
¶
Index ¶
- func Close[T any](ch chan T) (ok bool)
- func ConnBGP(s *core.StageBase, conn net.Conn, in *pipe.Input) error
- func ConnPublish(s *core.StageBase, conn net.Conn)
- func DialRetry(s *core.StageBase, dialer *net.Dialer, network, address string) (net.Conn, error)
- func Send[T any](ch chan T, v T) (ok bool)
- func TcpMd5(md5pass string) func(net, addr string, c syscall.RawConn) error
- type Stdlog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
Close closes channel ch if ch != nil. It recovers from panic if the channel is already closed. It returns ok=true if the channel was closed successfully.
func DialRetry ¶
DialRetry is a dialer.DialContext wrapper that adds connection timeout and retry with exponential backoff and jitter. Stage s can have many konfig options to tune the dialing.
Types ¶
Click to show internal directories.
Click to hide internal directories.