implement qlogging of the congestion_state_updated event

This commit is contained in:
Marten Seemann
2020-07-22 15:19:45 +07:00
parent 0b7efe10d1
commit 5cf72e2f34
5 changed files with 51 additions and 1 deletions

View File

@@ -422,3 +422,15 @@ func (e eventLossTimerCanceled) IsNil() bool { return false }
func (e eventLossTimerCanceled) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("event_type", "cancelled")
}
type eventCongestionStateUpdated struct {
state congestionState
}
func (e eventCongestionStateUpdated) Category() category { return categoryRecovery }
func (e eventCongestionStateUpdated) Name() string { return "congestion_state_updated" }
func (e eventCongestionStateUpdated) IsNil() bool { return false }
func (e eventCongestionStateUpdated) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("new", e.state.String())
}