notifications

package
v5.28.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationCategory

type NotificationCategory string
const (
	Hint         NotificationCategory = "HINT"
	Unrecognized NotificationCategory = "UNRECOGNIZED"
	Unsupported  NotificationCategory = "UNSUPPORTED"
	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"
	// Schema requires server version 5.17 or newer.
	Schema  NotificationCategory = "SCHEMA"
	Unknown NotificationCategory = "UNKNOWN"
)

type NotificationClassification

type NotificationClassification = NotificationCategory

NotificationClassification is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

type NotificationDisabledCategories

type NotificationDisabledCategories struct {
	// contains filtered or unexported fields
}

func DisableCategories

func DisableCategories(value ...NotificationCategory) NotificationDisabledCategories

DisableCategories creates a NotificationDisabledCategories that disables the given categories. Can be used for NotificationsDisabledCategories of config.Config and config.SessionConfig.

func DisableNoCategories

func DisableNoCategories() NotificationDisabledCategories

DisableNoCategories creates a NotificationDisabledCategories that enables all categories. Can be used for NotificationsDisabledCategories of neo4j.Config and neo4j.SessionConfig.

func (*NotificationDisabledCategories) DisabledCategories

func (n *NotificationDisabledCategories) DisabledCategories() []NotificationCategory

DisabledCategories returns the categories that are disabled.

func (*NotificationDisabledCategories) DisablesNone

func (n *NotificationDisabledCategories) DisablesNone() bool

DisablesNone returns true if all categories are enabled.

type NotificationDisabledClassifications

type NotificationDisabledClassifications struct {
	// contains filtered or unexported fields
}

NotificationDisabledClassifications is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

func DisableClassifications

func DisableClassifications(value ...NotificationClassification) NotificationDisabledClassifications

DisableClassifications creates a NotificationDisabledClassifications that disables the given classifications. Can be used for NotificationsDisabledClassifications of config.Config and config.SessionConfig.

DisableClassifications is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

func DisableNoClassifications

func DisableNoClassifications() NotificationDisabledClassifications

DisableNoClassifications creates a NotificationDisabledClassifications that enables all classifications. Can be used for NotificationsDisabledClassifications of neo4j.Config and neo4j.SessionConfig.

DisableNoClassifications is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

func (*NotificationDisabledClassifications) DisabledClassifications

func (n *NotificationDisabledClassifications) DisabledClassifications() []NotificationClassification

DisabledClassifications returns the classifications that are disabled.

DisabledClassifications is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

func (*NotificationDisabledClassifications) DisablesNone

func (n *NotificationDisabledClassifications) DisablesNone() bool

DisablesNone returns true if all classifications are enabled.

DisablesNone is part of the GQL compliant notifications preview feature (see README on what it means in terms of support and compatibility guarantees)

type NotificationMinimumSeverityLevel

type NotificationMinimumSeverityLevel string

NotificationMinimumSeverityLevel defines the minimum severity level of notifications the server should send. Can be used for NotificationsMinSeverity of config.Config and config.SessionConfig.

const (
	DefaultLevel     NotificationMinimumSeverityLevel = ""
	DisabledLevel    NotificationMinimumSeverityLevel = "OFF"
	WarningLevel     NotificationMinimumSeverityLevel = "WARNING"
	InformationLevel NotificationMinimumSeverityLevel = "INFORMATION"
)

type NotificationSeverity

type NotificationSeverity string
const (
	Warning         NotificationSeverity = "WARNING"
	Information     NotificationSeverity = "INFORMATION"
	UnknownSeverity NotificationSeverity = "UNKNOWN"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL