Versions in this module Expand all Collapse all v0 v0.5.0 Apr 11, 2017 Changes in this version + const InfDuration + func AbsDuration(d time.Duration) time.Duration + func Debug() bool + func Debugf(format string, args ...interface{}) + func Errorf(format string, args ...interface{}) + func GenerateConnectionID() (protocol.ConnectionID, error) + func HostnameFromAddr(addr string) (string, error) + func Infof(format string, args ...interface{}) + func Max(a, b int) int + func MaxDuration(a, b time.Duration) time.Duration + func MaxInt64(a, b int64) int64 + func MaxPacketNumber(a, b protocol.PacketNumber) protocol.PacketNumber + 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 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 ReadUfloat16(b io.ByteReader) (uint64, error) + func ReadUint16(b io.ByteReader) (uint16, error) + func ReadUint32(b io.ByteReader) (uint32, error) + func ReadUint64(b io.ByteReader) (uint64, error) + func ReadUintN(b io.ByteReader, length uint8) (uint64, error) + func SetLogLevel(level LogLevel) + func SetLogWriter(w io.Writer) + func WriteUfloat16(b *bytes.Buffer, value uint64) + func WriteUint16(b *bytes.Buffer, i uint16) + func WriteUint24(b *bytes.Buffer, i uint32) + func WriteUint32(b *bytes.Buffer, i uint32) + func WriteUint40(b *bytes.Buffer, i uint64) + func WriteUint48(b *bytes.Buffer, i uint64) + func WriteUint56(b *bytes.Buffer, i uint64) + func WriteUint64(b *bytes.Buffer, i uint64) + 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 LogLevel uint8 + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelNothing + 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 Uint32Slice []uint32 + func (s Uint32Slice) Len() int + func (s Uint32Slice) Less(i, j int) bool + func (s Uint32Slice) Swap(i, j int)