Versions in this module Expand all Collapse all v0 v0.19.5 Jan 10, 2021 Changes in this version + const InfDuration + func AbsDuration(d time.Duration) time.Duration + func IsIPv4(ip net.IP) bool + func Max(a, b int) int + func MaxByteCount(a, b protocol.ByteCount) protocol.ByteCount + func MaxDuration(a, b time.Duration) time.Duration + func MaxInt64(a, b int64) int64 + func MaxPacketNumber(a, b protocol.PacketNumber) protocol.PacketNumber + func MaxTime(a, b time.Time) time.Time + func MaxUint32(a, b uint32) uint32 + func MaxUint64(a, b uint64) uint64 + func Min(a, b int) int + func MinByteCount(a, b protocol.ByteCount) protocol.ByteCount + func MinDuration(a, b time.Duration) time.Duration + func MinInt64(a, b int64) int64 + func MinNonZeroDuration(a, b time.Duration) time.Duration + func MinNonZeroTime(a, b time.Time) time.Time + func MinPacketNumber(a, b protocol.PacketNumber) protocol.PacketNumber + func MinTime(a, b time.Time) time.Time + func MinUint32(a, b uint32) uint32 + func MinUint64(a, b uint64) uint64 + func NewBufferedWriteCloser(writer *bufio.Writer, closer io.Closer) io.WriteCloser + type AtomicBool struct + func (a *AtomicBool) Get() bool + func (a *AtomicBool) Set(value bool) + type ByteInterval struct + End protocol.ByteCount + Start protocol.ByteCount + type ByteIntervalElement struct + Value ByteInterval + func (e *ByteIntervalElement) Next() *ByteIntervalElement + func (e *ByteIntervalElement) Prev() *ByteIntervalElement + type ByteIntervalList struct + func NewByteIntervalList() *ByteIntervalList + func (l *ByteIntervalList) Back() *ByteIntervalElement + func (l *ByteIntervalList) Front() *ByteIntervalElement + func (l *ByteIntervalList) Init() *ByteIntervalList + func (l *ByteIntervalList) InsertAfter(v ByteInterval, mark *ByteIntervalElement) *ByteIntervalElement + func (l *ByteIntervalList) InsertBefore(v ByteInterval, mark *ByteIntervalElement) *ByteIntervalElement + func (l *ByteIntervalList) Len() int + func (l *ByteIntervalList) MoveAfter(e, mark *ByteIntervalElement) + func (l *ByteIntervalList) MoveBefore(e, mark *ByteIntervalElement) + func (l *ByteIntervalList) MoveToBack(e *ByteIntervalElement) + func (l *ByteIntervalList) MoveToFront(e *ByteIntervalElement) + func (l *ByteIntervalList) PushBack(v ByteInterval) *ByteIntervalElement + func (l *ByteIntervalList) PushBackList(other *ByteIntervalList) + func (l *ByteIntervalList) PushFront(v ByteInterval) *ByteIntervalElement + func (l *ByteIntervalList) PushFrontList(other *ByteIntervalList) + func (l *ByteIntervalList) Remove(e *ByteIntervalElement) ByteInterval + type ByteOrder interface + ReadUint16 func(io.ByteReader) (uint16, error) + ReadUint24 func(io.ByteReader) (uint32, error) + ReadUint32 func(io.ByteReader) (uint32, error) + 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 NewConnectionID struct + ConnectionID protocol.ConnectionID + SequenceNumber uint64 + StatelessResetToken protocol.StatelessResetToken + type NewConnectionIDElement struct + Value NewConnectionID + func (e *NewConnectionIDElement) Next() *NewConnectionIDElement + func (e *NewConnectionIDElement) Prev() *NewConnectionIDElement + type NewConnectionIDList struct + func NewNewConnectionIDList() *NewConnectionIDList + func (l *NewConnectionIDList) Back() *NewConnectionIDElement + func (l *NewConnectionIDList) Front() *NewConnectionIDElement + func (l *NewConnectionIDList) Init() *NewConnectionIDList + func (l *NewConnectionIDList) InsertAfter(v NewConnectionID, mark *NewConnectionIDElement) *NewConnectionIDElement + func (l *NewConnectionIDList) InsertBefore(v NewConnectionID, mark *NewConnectionIDElement) *NewConnectionIDElement + func (l *NewConnectionIDList) Len() int + func (l *NewConnectionIDList) MoveAfter(e, mark *NewConnectionIDElement) + func (l *NewConnectionIDList) MoveBefore(e, mark *NewConnectionIDElement) + func (l *NewConnectionIDList) MoveToBack(e *NewConnectionIDElement) + func (l *NewConnectionIDList) MoveToFront(e *NewConnectionIDElement) + func (l *NewConnectionIDList) PushBack(v NewConnectionID) *NewConnectionIDElement + func (l *NewConnectionIDList) PushBackList(other *NewConnectionIDList) + func (l *NewConnectionIDList) PushFront(v NewConnectionID) *NewConnectionIDElement + func (l *NewConnectionIDList) PushFrontList(other *NewConnectionIDList) + func (l *NewConnectionIDList) Remove(e *NewConnectionIDElement) NewConnectionID + type PacketInterval struct + End protocol.PacketNumber + Start protocol.PacketNumber + type PacketIntervalElement struct + Value PacketInterval + func (e *PacketIntervalElement) Next() *PacketIntervalElement + func (e *PacketIntervalElement) Prev() *PacketIntervalElement + type PacketIntervalList struct + func NewPacketIntervalList() *PacketIntervalList + func (l *PacketIntervalList) Back() *PacketIntervalElement + func (l *PacketIntervalList) Front() *PacketIntervalElement + func (l *PacketIntervalList) Init() *PacketIntervalList + func (l *PacketIntervalList) InsertAfter(v PacketInterval, mark *PacketIntervalElement) *PacketIntervalElement + func (l *PacketIntervalList) InsertBefore(v PacketInterval, mark *PacketIntervalElement) *PacketIntervalElement + func (l *PacketIntervalList) Len() int + func (l *PacketIntervalList) MoveAfter(e, mark *PacketIntervalElement) + func (l *PacketIntervalList) MoveBefore(e, mark *PacketIntervalElement) + func (l *PacketIntervalList) MoveToBack(e *PacketIntervalElement) + func (l *PacketIntervalList) MoveToFront(e *PacketIntervalElement) + func (l *PacketIntervalList) PushBack(v PacketInterval) *PacketIntervalElement + func (l *PacketIntervalList) PushBackList(other *PacketIntervalList) + func (l *PacketIntervalList) PushFront(v PacketInterval) *PacketIntervalElement + func (l *PacketIntervalList) PushFrontList(other *PacketIntervalList) + func (l *PacketIntervalList) Remove(e *PacketIntervalElement) PacketInterval + 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 Timer struct + func NewTimer() *Timer + func (t *Timer) Chan() <-chan time.Time + func (t *Timer) Reset(deadline time.Time) + func (t *Timer) SetRead() + func (t *Timer) Stop()