quictrace

package
v0.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 0

README

quic-trace Adapter

This is an experimental implementation of the log format consumed by quic-trace.

At this moment, this package comes with no API stability whatsoever.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time      time.Time
	EventType EventType

	TransportState  *TransportState
	EncryptionLevel protocol.EncryptionLevel
	PacketNumber    protocol.PacketNumber
	PacketSize      protocol.ByteCount
	Frames          []wire.Frame
}

Event is a quic-traceable event

type EventType

type EventType uint8

EventType is the type of an event

const (
	// PacketSent means that a packet was sent
	PacketSent EventType = 1 + iota
	// PacketReceived means that a packet was received
	PacketReceived
	// PacketLost means that a packet was lost
	PacketLost
)

type Tracer

type Tracer interface {
	Trace(protocol.ConnectionID, Event)
	GetAllTraces() map[string][]byte
}

A Tracer traces a QUIC connection

func NewTracer

func NewTracer() Tracer

NewTracer returns a new Tracer that doesn't do anything.

type TransportState

type TransportState struct {
	MinRTT      time.Duration
	SmoothedRTT time.Duration
	LatestRTT   time.Duration

	BytesInFlight    protocol.ByteCount
	CongestionWindow protocol.ByteCount
	InSlowStart      bool
	InRecovery       bool
}

TransportState contains some transport and congestion statistics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL