package
0.19.5
Repository: https://github.com/safing/portbase.git
Documentation: pkg.go.dev

# Functions

Delete deletes the notification with the given id.
EnsureNotification ensures that the given record is a Notification and returns it.
Get returns the notification identifed by the given id or nil if it doesn't exist.
Notify sends the given notification.
NotifyError is a helper method for quickly showing an error notification.
NotifyInfo is a helper method for quickly showing an info notification.
NotifyPrompt is a helper method for quickly showing a prompt notification.
NotifyWarn is a helper method for quickly showing a warning notification The notification will be activated immediately.

# Constants

Payload: Event ID.
Report selected ID back to backend.
Payload: Page ID.
Payload: Scoped Profile ID.
Payload: See struct definition below.
Open external URL.
Payload: See struct definition below.
Active describes a notification that is active, no expired and, if actions are available, still waits for the user to select an action.
Notification types.
Executes describes a notification where the user has selected and action and that action has been performed.
Notification types.
Notification types.
Responded describes a notification where the user has already selected which action to take but that action is still to be performed.
Notification types.

# Variables

Configuration Keys.
Storage interface errors.
Storage interface errors.
Storage interface errors.

# Structs

Action describes an action that can be taken for a notification.
ActionTypeOpenSettingPayload defines the payload for the OpenSetting Action Type.
ActionTypeWebhookPayload defines the payload for the WebhookPayload Action Type.
Notification represents a notification that is to be delivered to the user.
StorageInterface provices a storage.Interface to the configuration manager.

# Type aliases

ActionType defines a specific type of action.
NotificationActionFn defines the function signature for notification action functions.
State describes the state of a notification.
Type describes the type of a notification.