From ede36d4919d024f882c6b03f5464e5d0fae00d0d Mon Sep 17 00:00:00 2001 From: Stephen Cathcart Date: Wed, 11 Oct 2023 12:46:29 +0100 Subject: [PATCH] add new notifications (#537) --- neo4j/notifications/notifications.go | 4 ++++ neo4j/resultsummary.go | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/neo4j/notifications/notifications.go b/neo4j/notifications/notifications.go index 144ee8cd..37fd4a86 100644 --- a/neo4j/notifications/notifications.go +++ b/neo4j/notifications/notifications.go @@ -28,6 +28,10 @@ const ( Performance NotificationCategory = "PERFORMANCE" Deprecation NotificationCategory = "DEPRECATION" Generic NotificationCategory = "GENERIC" + // Security requires server version 5.14 or newer. + Security NotificationCategory = "SECURITY" + // Topology requires server version 5.14 or newer. + Topology NotificationCategory = "TOPOLOGY" ) type NotificationDisabledCategories struct { diff --git a/neo4j/resultsummary.go b/neo4j/resultsummary.go index 2b8f7853..e39d4d1c 100644 --- a/neo4j/resultsummary.go +++ b/neo4j/resultsummary.go @@ -266,6 +266,8 @@ const ( Performance NotificationCategory = "PERFORMANCE" Deprecation NotificationCategory = "DEPRECATION" Generic NotificationCategory = "GENERIC" + Security NotificationCategory = "SECURITY" + Topology NotificationCategory = "TOPOLOGY" UnknownCategory NotificationCategory = "UNKNOWN" ) @@ -565,6 +567,10 @@ func (n *notification) Category() NotificationCategory { return Performance case "DEPRECATION": return Deprecation + case "SECURITY": + return Security + case "TOPOLOGY": + return Topology case "GENERIC": return Generic default: