qlog dropped encryption levels

This commit is contained in:
Marten Seemann
2020-03-13 17:17:28 +07:00
parent 699c988917
commit 63921b6dcb
4 changed files with 53 additions and 1 deletions

View File

@@ -238,3 +238,17 @@ func (e eventKeyUpdated) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("key_type", e.KeyType.String())
enc.Uint64KeyOmitEmpty("generation", uint64(e.Generation))
}
type eventKeyRetired struct {
KeyType keyType
Generation protocol.KeyPhase
}
func (e eventKeyRetired) Category() category { return categorySecurity }
func (e eventKeyRetired) Name() string { return "key_retired" }
func (e eventKeyRetired) IsNil() bool { return false }
func (e eventKeyRetired) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("trigger", "tls")
enc.StringKey("key_type", e.KeyType.String())
}