qlog changes of the PTO count

This commit is contained in:
Marten Seemann
2020-03-05 11:08:27 +07:00
parent eb19ec6096
commit 49a5856efb
4 changed files with 39 additions and 0 deletions

View File

@@ -181,6 +181,18 @@ func (e eventMetricsUpdated) MarshalJSONObject(enc *gojay.Encoder) {
enc.Uint64KeyOmitEmpty("packets_in_flight", uint64(e.PacketsInFlight))
}
type eventUpdatedPTO struct {
Value uint32
}
func (e eventUpdatedPTO) Category() category { return categoryRecovery }
func (e eventUpdatedPTO) Name() string { return "metrics_updated" }
func (e eventUpdatedPTO) IsNil() bool { return false }
func (e eventUpdatedPTO) MarshalJSONObject(enc *gojay.Encoder) {
enc.Uint32Key("pto_count", e.Value)
}
type eventPacketLost struct {
PacketType packetType
PacketNumber protocol.PacketNumber