qlog session timeouts

This commit is contained in:
Marten Seemann
2020-04-17 08:10:30 +07:00
parent 16e3ddb196
commit dc3c96debf
8 changed files with 89 additions and 3 deletions

View File

@@ -92,6 +92,19 @@ func (e eventConnectionStarted) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("dst_cid", connectionID(e.DestConnectionID).String())
}
type eventConnectionClosed struct {
Reason CloseReason
}
func (e eventConnectionClosed) Category() category { return categoryTransport }
func (e eventConnectionClosed) Name() string { return "connection_state_updated" }
func (e eventConnectionClosed) IsNil() bool { return false }
func (e eventConnectionClosed) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("new", "closed")
enc.StringKey("trigger", e.Reason.String())
}
type eventPacketSent struct {
PacketType PacketType
Header packetHeader