Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultEventFields() []string
- type AckFrame
- type ConnectionCloseFrame
- type CryptoFrame
- type DataBlockedFrame
- type Event
- type HandshakeDoneFrame
- type MaxDataFrame
- type MaxStreamDataFrame
- type MaxStreamsFrame
- type MetricUpdate
- type NewConnectionIDFrame
- type NewTokenFrame
- type Packet
- type PacketBuffered
- type PacketHeader
- type PacketLost
- type PacketTrigger
- type PathChallengeFrame
- type PathResponseFrame
- type PingFrame
- type QLog
- type ResetStreamFrame
- type RetireConnectionIDFrame
- type StopSendingFrame
- type StreamDataBlockedFrame
- type StreamFrame
- type StreamType
- type StreamsBlockedFrame
- type Trace
- type UnknownFrame
Constants ¶
View Source
const ( PacketTriggerReordering = "retransmit_reorder" PacketTriggerTimeout = "retransmit_timeout" PacketTriggerPTO = "pro_probe" PacketTriggerCrypto = "retransmit_crypto" PacketTriggerBWProbe = "cc_bandwidth_probe" )
View Source
const ( TimeUnits = time.Microsecond TimeUnitsString = "us" )
Variables ¶
View Source
var Categories = struct { Connectivity struct { Category string ServerListening string ConnectionStarted string ConnectionIDUpdated string SpinBitUpdated string ConnectionRetried string ConnectionStateUpdated string } Transport struct { Category string PacketSent string PacketReceived string PacketDropped string PacketBuffered string StreamStateUpdated string } Recovery struct { Category string MetricsUpdated string CongestionStateUpdated string LossTimerSet string LossTimerFired string PacketLost string MarkedForRetransmit string } }{ struct { Category string ServerListening string ConnectionStarted string ConnectionIDUpdated string SpinBitUpdated string ConnectionRetried string ConnectionStateUpdated string }{"connectivity", "server_listening", "connection_started", "connection_id_updated", "spin_bit_updated", "connection_retried", "connection_state_updated"}, struct { Category string PacketSent string PacketReceived string PacketDropped string PacketBuffered string StreamStateUpdated string }{"transport", "packet_sent", "packet_received", "packet_dropped", "packet_buffered", "stream_state_updated"}, struct { Category string MetricsUpdated string CongestionStateUpdated string LossTimerSet string LossTimerFired string PacketLost string MarkedForRetransmit string }{"recovery", "metrics_updated", "congestion_state_updated", "loss_timer_set", "loss_timer_fired", "packet_lost", "marked_for_retransmit"}, }
Functions ¶
func DefaultEventFields ¶
func DefaultEventFields() []string
Types ¶
type ConnectionCloseFrame ¶
type CryptoFrame ¶
type DataBlockedFrame ¶
type Event ¶
func (*Event) MarshalJSON ¶
type HandshakeDoneFrame ¶
type HandshakeDoneFrame struct {
FrameType string `json:"frame_type"`
}
type MaxDataFrame ¶
type MaxStreamDataFrame ¶
type MaxStreamsFrame ¶
type MaxStreamsFrame struct { FrameType string `json:"frame_type"` StreamType `json:"stream_type"` Maximum uint64 `json:"maximum,string"` }
type MetricUpdate ¶
type MetricUpdate struct { CongestionWindow uint64 `json:"congestion_window,omitempty"` BytesInFlight uint64 `json:"bytes_in_flight,omitempty"` MinRTT uint64 `json:"min_rtt,omitempty"` SmoothedRTT uint64 `json:"smoothed_rtt,omitempty"` LatestRTT uint64 `json:"latest_rtt,omitempty"` MaxAckDelay uint64 `json:"max_ack_delay,omitempty"` RTTVariance uint64 `json:"rtt_variance,omitempty"` SSThresh uint64 `json:"ssthresh,omitempty"` PacingRate uint64 `json:"pacing_rate,omitempty"` }
type NewConnectionIDFrame ¶
type NewTokenFrame ¶
type Packet ¶
type Packet struct { PacketType string `json:"packet_type"` Header PacketHeader `json:"header"` Frames []interface{} `json:"frames,omitempty"` IsCoalesced bool `json:"is_coalesced,omitempty"` Trigger string `json:"trigger,omitempty"` }
type PacketBuffered ¶
type PacketHeader ¶
type PacketHeader struct { PacketNumber uint64 `json:"packet_number,string"` PacketSize int `json:"packet_size,omitempty"` PayloadLength int `json:"payload_length,omitempty"` Version string `json:"version,omitempty"` SCIL string `json:"scil,omitempty"` DCIL string `json:"dcil,omitempty"` SCID string `json:"scid,omitempty"` DCID string `json:"dcid,omitempty"` }
type PacketLost ¶
type PacketTrigger ¶
type PacketTrigger string
type PathChallengeFrame ¶
type PathResponseFrame ¶
type ResetStreamFrame ¶
type RetireConnectionIDFrame ¶
type StopSendingFrame ¶
type StreamDataBlockedFrame ¶
type StreamFrame ¶
type StreamType ¶
type StreamType string
const ( StreamTypeBidi StreamType = "bidirectional" StreamTypeUni StreamType = "unidirectional" )
type StreamsBlockedFrame ¶
type StreamsBlockedFrame struct { FrameType string `json:"frame_type"` StreamType `json:"stream_type"` Limit uint64 `json:"limit,string"` }
type Trace ¶
type Trace struct { VantagePoint struct { Name string `json:"name"` Type string `json:"type"` } `json:"vantage_point"` Title string `json:"title"` Description string `json:"description"` Configuration struct { TimeOffset uint64 `json:"time_offset,string"` TimeUnits string `json:"time_units"` } `json:"configuration"` CommonFields map[string]interface{} `json:"common_fields"` EventFields []string `json:"event_fields"` Events []*Event `json:"events"` ReferenceTime time.Time `json:"-"` }
type UnknownFrame ¶
Click to show internal directories.
Click to hide internal directories.