quic-go: github.com/lucas-clemente/quic-go/quictrace Index | Files | Directories

package quictrace

import "github.com/lucas-clemente/quic-go/quictrace"

Index

Package Files

interface.go tracer.go

type Event Uses

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 Uses

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 Uses

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

A Tracer traces a QUIC connection

func NewTracer Uses

func NewTracer() Tracer

NewTracer creates a new Tracer

type TransportState Uses

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

PathSynopsis
pb

Package quictrace imports 6 packages (graph) and is imported by 6 packages. Updated 2019-09-18. Refresh now. Tools for package owners.