Skip to content

Commit ede36d4

Browse files
add new notifications (#537)
1 parent 63fbd93 commit ede36d4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

neo4j/notifications/notifications.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ const (
2828
Performance NotificationCategory = "PERFORMANCE"
2929
Deprecation NotificationCategory = "DEPRECATION"
3030
Generic NotificationCategory = "GENERIC"
31+
// Security requires server version 5.14 or newer.
32+
Security NotificationCategory = "SECURITY"
33+
// Topology requires server version 5.14 or newer.
34+
Topology NotificationCategory = "TOPOLOGY"
3135
)
3236

3337
type NotificationDisabledCategories struct {

neo4j/resultsummary.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ const (
266266
Performance NotificationCategory = "PERFORMANCE"
267267
Deprecation NotificationCategory = "DEPRECATION"
268268
Generic NotificationCategory = "GENERIC"
269+
Security NotificationCategory = "SECURITY"
270+
Topology NotificationCategory = "TOPOLOGY"
269271
UnknownCategory NotificationCategory = "UNKNOWN"
270272
)
271273

@@ -565,6 +567,10 @@ func (n *notification) Category() NotificationCategory {
565567
return Performance
566568
case "DEPRECATION":
567569
return Deprecation
570+
case "SECURITY":
571+
return Security
572+
case "TOPOLOGY":
573+
return Topology
568574
case "GENERIC":
569575
return Generic
570576
default:

0 commit comments

Comments
 (0)