forked from quic-go/quic-go
qlog: add support for alpn_information event (#4216)
* qlog chosen alpn * qlog chosen alpn * qlog: fix capitalization of ALPN --------- Co-authored-by: Marten Seemann <martenseemann@gmail.com>
This commit is contained in:
@@ -554,3 +554,15 @@ func (e eventGeneric) IsNil() bool { return false }
|
||||
func (e eventGeneric) MarshalJSONObject(enc *gojay.Encoder) {
|
||||
enc.StringKey("details", e.msg)
|
||||
}
|
||||
|
||||
type eventALPNInformation struct {
|
||||
chosenALPN string
|
||||
}
|
||||
|
||||
func (e eventALPNInformation) Category() category { return categoryTransport }
|
||||
func (e eventALPNInformation) Name() string { return "alpn_information" }
|
||||
func (e eventALPNInformation) IsNil() bool { return false }
|
||||
|
||||
func (e eventALPNInformation) MarshalJSONObject(enc *gojay.Encoder) {
|
||||
enc.StringKey("chosen_alpn", e.chosenALPN)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user