Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2024 Changes in this version + const InfDuration + func IsIPv4(ip net.IP) bool + func MaxTime(a, b time.Time) time.Time + func MinNonZeroDuration(a, b time.Duration) time.Duration + func MinNonZeroTime(a, b time.Time) time.Time + func MinTime(a, b time.Time) time.Time + func Min[T constraints.Ordered](a, b T) T + func NewBufferedWriteCloser(writer *bufio.Writer, closer io.Closer) io.WriteCloser + type ByteOrder interface + ReadUint16 func(io.ByteReader) (uint16, error) + ReadUint24 func(io.ByteReader) (uint32, error) + ReadUint32 func(io.ByteReader) (uint32, error) + Uint16 func([]byte) uint16 + Uint24 func([]byte) uint32 + Uint32 func([]byte) uint32 + WriteUint16 func(*bytes.Buffer, uint16) + WriteUint24 func(*bytes.Buffer, uint32) + WriteUint32 func(*bytes.Buffer, uint32) + var BigEndian ByteOrder = bigEndian{} + type LogLevel uint8 + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelNothing + type Logger interface + Debug func() bool + Debugf func(format string, args ...interface{}) + Errorf func(format string, args ...interface{}) + Infof func(format string, args ...interface{}) + SetLogLevel func(LogLevel) + SetLogTimeFormat func(format string) + WithPrefix func(prefix string) Logger + var DefaultLogger Logger + type RTTStats struct + func NewRTTStats() *RTTStats + func (r *RTTStats) ExpireSmoothedMetrics() + func (r *RTTStats) LatestRTT() time.Duration + func (r *RTTStats) MaxAckDelay() time.Duration + func (r *RTTStats) MeanDeviation() time.Duration + func (r *RTTStats) MinRTT() time.Duration + func (r *RTTStats) OnConnectionMigration() + func (r *RTTStats) PTO(includeMaxAckDelay bool) time.Duration + func (r *RTTStats) SetInitialRTT(t time.Duration) + func (r *RTTStats) SetMaxAckDelay(mad time.Duration) + func (r *RTTStats) SmoothedRTT() time.Duration + func (r *RTTStats) UpdateRTT(sendDelta, ackDelay time.Duration, now time.Time) + type Rand struct + func (r *Rand) Int31() int32 + func (r *Rand) Int31n(n int32) int32 + type Timer struct + func NewTimer() *Timer + func (t *Timer) Chan() <-chan time.Time + func (t *Timer) Deadline() time.Time + func (t *Timer) Reset(deadline time.Time) + func (t *Timer) SetRead() + func (t *Timer) Stop()