github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/logging/frame.go (about)

     1  package logging
     2  
     3  import "github.com/danielpfeifer02/quic-go-prio-packs/internal/wire"
     4  
     5  // A Frame is a QUIC frame
     6  type Frame interface{}
     7  
     8  // The AckRange is used within the AckFrame.
     9  // It is a range of packet numbers that is being acknowledged.
    10  type AckRange = wire.AckRange
    11  
    12  type (
    13  	// An AckFrame is an ACK frame.
    14  	AckFrame = wire.AckFrame
    15  	// A ConnectionCloseFrame is a CONNECTION_CLOSE frame.
    16  	ConnectionCloseFrame = wire.ConnectionCloseFrame
    17  	// A DataBlockedFrame is a DATA_BLOCKED frame.
    18  	DataBlockedFrame = wire.DataBlockedFrame
    19  	// A HandshakeDoneFrame is a HANDSHAKE_DONE frame.
    20  	HandshakeDoneFrame = wire.HandshakeDoneFrame
    21  	// A MaxDataFrame is a MAX_DATA frame.
    22  	MaxDataFrame = wire.MaxDataFrame
    23  	// A MaxStreamDataFrame is a MAX_STREAM_DATA frame.
    24  	MaxStreamDataFrame = wire.MaxStreamDataFrame
    25  	// A MaxStreamsFrame is a MAX_STREAMS_FRAME.
    26  	MaxStreamsFrame = wire.MaxStreamsFrame
    27  	// A NewConnectionIDFrame is a NEW_CONNECTION_ID frame.
    28  	NewConnectionIDFrame = wire.NewConnectionIDFrame
    29  	// A NewTokenFrame is a NEW_TOKEN frame.
    30  	NewTokenFrame = wire.NewTokenFrame
    31  	// A PathChallengeFrame is a PATH_CHALLENGE frame.
    32  	PathChallengeFrame = wire.PathChallengeFrame
    33  	// A PathResponseFrame is a PATH_RESPONSE frame.
    34  	PathResponseFrame = wire.PathResponseFrame
    35  	// A PingFrame is a PING frame.
    36  	PingFrame = wire.PingFrame
    37  	// A ResetStreamFrame is a RESET_STREAM frame.
    38  	ResetStreamFrame = wire.ResetStreamFrame
    39  	// A RetireConnectionIDFrame is a RETIRE_CONNECTION_ID frame.
    40  	RetireConnectionIDFrame = wire.RetireConnectionIDFrame
    41  	// A StopSendingFrame is a STOP_SENDING frame.
    42  	StopSendingFrame = wire.StopSendingFrame
    43  	// A StreamsBlockedFrame is a STREAMS_BLOCKED frame.
    44  	StreamsBlockedFrame = wire.StreamsBlockedFrame
    45  	// A StreamDataBlockedFrame is a STREAM_DATA_BLOCKED frame.
    46  	StreamDataBlockedFrame = wire.StreamDataBlockedFrame
    47  )
    48  
    49  // A CryptoFrame is a CRYPTO frame.
    50  type CryptoFrame struct {
    51  	Offset ByteCount
    52  	Length ByteCount
    53  }
    54  
    55  // A StreamFrame is a STREAM frame.
    56  type StreamFrame struct {
    57  	StreamID StreamID
    58  	Offset   ByteCount
    59  	Length   ByteCount
    60  	Fin      bool
    61  }
    62  
    63  // A DatagramFrame is a DATAGRAM frame.
    64  type DatagramFrame struct {
    65  	Length ByteCount
    66  }