Skip to content

Commit

Permalink
add new notifications (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCathcart authored Oct 11, 2023
1 parent 63fbd93 commit ede36d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neo4j/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions neo4j/resultsummary.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ const (
Performance NotificationCategory = "PERFORMANCE"
Deprecation NotificationCategory = "DEPRECATION"
Generic NotificationCategory = "GENERIC"
Security NotificationCategory = "SECURITY"
Topology NotificationCategory = "TOPOLOGY"
UnknownCategory NotificationCategory = "UNKNOWN"
)

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ede36d4

Please sign in to comment.