Versions in this module Expand all Collapse all v0 v0.5.0 Apr 11, 2017 Changes in this version + var ErrInvalidAckRanges = errors.New("AckFrame: ACK frame contains invalid ACK ranges") + var ErrInvalidFirstAckRange = errors.New("AckFrame: ACK frame has invalid first ACK range") + func LogFrame(frame Frame, sent bool) + type AckFrame struct + AckRanges []AckRange + DelayTime time.Duration + LargestAcked protocol.PacketNumber + LowestAcked protocol.PacketNumber + PacketReceivedTime time.Time + func ParseAckFrame(r *bytes.Reader, version protocol.VersionNumber) (*AckFrame, error) + func (f *AckFrame) AcksPacket(p protocol.PacketNumber) bool + func (f *AckFrame) HasMissingRanges() bool + func (f *AckFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *AckFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type AckRange struct + FirstPacketNumber protocol.PacketNumber + LastPacketNumber protocol.PacketNumber + type BlockedFrame struct + StreamID protocol.StreamID + func ParseBlockedFrame(r *bytes.Reader) (*BlockedFrame, error) + func (f *BlockedFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *BlockedFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type ConnectionCloseFrame struct + ErrorCode qerr.ErrorCode + ReasonPhrase string + func ParseConnectionCloseFrame(r *bytes.Reader) (*ConnectionCloseFrame, error) + func (f *ConnectionCloseFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *ConnectionCloseFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type Frame interface + MinLength func(version protocol.VersionNumber) (protocol.ByteCount, error) + Write func(b *bytes.Buffer, version protocol.VersionNumber) error + type GoawayFrame struct + ErrorCode qerr.ErrorCode + LastGoodStream protocol.StreamID + ReasonPhrase string + func ParseGoawayFrame(r *bytes.Reader) (*GoawayFrame, error) + func (f *GoawayFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *GoawayFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type PingFrame struct + func ParsePingFrame(r *bytes.Reader) (*PingFrame, error) + func (f *PingFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *PingFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type RstStreamFrame struct + ByteOffset protocol.ByteCount + ErrorCode uint32 + StreamID protocol.StreamID + func ParseRstStreamFrame(r *bytes.Reader) (*RstStreamFrame, error) + func (f *RstStreamFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *RstStreamFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type StopWaitingFrame struct + LeastUnacked protocol.PacketNumber + PacketNumber protocol.PacketNumber + PacketNumberLen protocol.PacketNumberLen + func ParseStopWaitingFrame(r *bytes.Reader, packetNumber protocol.PacketNumber, ...) (*StopWaitingFrame, error) + func (f *StopWaitingFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *StopWaitingFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type StreamFrame struct + Data []byte + DataLenPresent bool + FinBit bool + Offset protocol.ByteCount + StreamID protocol.StreamID + func ParseStreamFrame(r *bytes.Reader) (*StreamFrame, error) + func (f *StreamFrame) DataLen() protocol.ByteCount + func (f *StreamFrame) MinLength(protocol.VersionNumber) (protocol.ByteCount, error) + func (f *StreamFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type WindowUpdateFrame struct + ByteOffset protocol.ByteCount + StreamID protocol.StreamID + func ParseWindowUpdateFrame(r *bytes.Reader) (*WindowUpdateFrame, error) + func (f *WindowUpdateFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *WindowUpdateFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error