Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseReason ¶ added in v0.15.4
type CloseReason uint8
CloseReason is the reason why a session is closed
const ( // CloseReasonHandshakeTimeout is used when the session is closed due to a handshake timeout // This reason is not defined in the qlog draft, but very useful for debugging. CloseReasonHandshakeTimeout CloseReason = iota // CloseReasonIdleTimeout is used when the session is closed due to an idle timeout // This reason is not defined in the qlog draft, but very useful for debugging. CloseReasonIdleTimeout )
func (CloseReason) String ¶ added in v0.15.4
func (r CloseReason) String() string
type PacketDropReason ¶ added in v0.15.3
type PacketDropReason uint8
const ( PacketDropReason = iota // PacketDropUnknownConnectionID is used when a packet is dropped because the connection ID is unknown PacketDropUnknownConnectionID // PacketDropHeaderParseError is used when a packet is dropped because header parsing failed PacketDropHeaderParseError // PacketDropPayloadDecryptError is used when a packet is dropped because decrypting the payload failed PacketDropPayloadDecryptError // PacketDropProtocolViolation is used when a packet is dropped due to a protocol violation PacketDropProtocolViolation // PacketDropDOSPrevention is used when a packet is dropped to mitigate a DoS attack PacketDropDOSPrevention // PacketDropUnsupportedVersion is used when a packet is dropped because the version is not supported PacketDropUnsupportedVersion // PacketDropUnexpectedPacket is used when an unexpected packet is received PacketDropUnexpectedPacket // PacketDropUnexpectedSourceConnectionID is used when a packet with an unexpected source connection ID is received PacketDropUnexpectedSourceConnectionID // PacketDropUnexpectedVersion is used when a packet with an unexpected version is received PacketDropUnexpectedVersion // PacketDropDuplicate is used when a duplicate packet is received PacketDropDuplicate )PacketDropKeyUnavailable
func (PacketDropReason) String ¶ added in v0.15.3
func (r PacketDropReason) String() string
type PacketLossReason ¶
type PacketLossReason uint8
const ( // PacketLossReorderingThreshold: when a packet is deemed lost due to reordering threshold PacketLossReorderingThreshold PacketLossReason = iota // PacketLossTimeThreshold: when a packet is deemed lost due to time threshold PacketLossTimeThreshold )
func (PacketLossReason) String ¶
func (r PacketLossReason) String() string
type PacketType ¶ added in v0.15.3
type PacketType protocol.PacketType
PacketType is the packet type of a QUIC packet
const ( // PacketTypeInitial is the packet type of an Initial packet PacketTypeInitial PacketType = iota // PacketTypeHandshake is the packet type of a Handshake packet PacketTypeHandshake // PacketTypeRetry is the packet type of a Retry packet PacketTypeRetry // PacketType0RTT is the packet type of a 0-RTT packet PacketType0RTT // PacketTypeVersionNegotiation is the packet type of a Version Negotiation packet PacketTypeVersionNegotiation // PacketType1RTT is a 1-RTT packet PacketType1RTT // PacketTypeStatelessReset is a stateless reset PacketTypeStatelessReset // PacketTypeNotDetermined is the packet type when it could not be determined PacketTypeNotDetermined )
func PacketTypeFromHeader ¶ added in v0.15.3
func PacketTypeFromHeader(hdr *wire.Header) PacketType
PacketTypeFromHeader determines the packet type from a *wire.Header.
func (PacketType) String ¶ added in v0.15.3
func (t PacketType) String() string
type TimerType ¶ added in v0.15.3
type TimerType uint8
TimerType is the type of the loss detection timer
type Tracer ¶
type Tracer interface { Export() error StartedConnection(local, remote net.Addr, version protocol.VersionNumber, srcConnID, destConnID protocol.ConnectionID) ClosedConnection(CloseReason) SentTransportParameters(*wire.TransportParameters) ReceivedTransportParameters(*wire.TransportParameters) SentPacket(hdr *wire.ExtendedHeader, packetSize protocol.ByteCount, ack *wire.AckFrame, frames []wire.Frame) ReceivedVersionNegotiationPacket(*wire.Header) ReceivedRetry(*wire.Header) ReceivedPacket(hdr *wire.ExtendedHeader, packetSize protocol.ByteCount, frames []wire.Frame) ReceivedStatelessReset(token *[16]byte) BufferedPacket(PacketType) DroppedPacket(PacketType, protocol.ByteCount, PacketDropReason) UpdatedMetrics(rttStats *congestion.RTTStats, cwnd protocol.ByteCount, bytesInFLight protocol.ByteCount, packetsInFlight int) LostPacket(protocol.EncryptionLevel, protocol.PacketNumber, PacketLossReason) UpdatedPTOCount(value uint32) UpdatedKeyFromTLS(protocol.EncryptionLevel, protocol.Perspective) UpdatedKey(generation protocol.KeyPhase, remote bool) DroppedEncryptionLevel(protocol.EncryptionLevel) SetLossTimer(TimerType, protocol.EncryptionLevel, time.Time) LossTimerExpired(TimerType, protocol.EncryptionLevel) LossTimerCanceled() }
A Tracer records events to be exported to a qlog.
func NewTracer ¶
func NewTracer(w io.WriteCloser, p protocol.Perspective, odcid protocol.ConnectionID) Tracer
NewTracer creates a new tracer to record a qlog.
Click to show internal directories.
Click to hide internal directories.