package
0.0.0-20210104084008-1f06296fe8ad
Repository: https://github.com/chipaca/snappy.git
Documentation: pkg.go.dev

# Functions

New returns new connection to a freedesktop.org message notification server.
WithActionIcons returns a hint asking the server to use action key as icon names.
WithCategory returns a hint asking the server to set message category.
WithDesktopEntry returns a hint asking the server to associate a desktop file with a message.
WithImageFile returns a hint asking the server display an image loaded from file.
WithPointToX returns a hint asking the server to point the notification at a specific X coordinate.
WithPointToY returns a hint asking the server to point the notification at a specific Y coordinate.
WithResident returns a hint asking the server to keep the message after an action is invoked.
WithSoundFile returns a hint asking the server to play a sound loaded from file.
WithSoundName returns a hint asking the server to play a sound from the sound theme.
WithSuppressSound returns a hint asking the server not to play any notification sounds.
WithTransient returns a hint asking the server to bypass message persistence.
WithUrgency returns a hint asking the server to set message urgency.

# Constants

ActionIconsCapability indicates that the server supports using icons instead of text for displaying actions.
ActionsCapability indicates that the server will provide the specified actions to the user.
BodyCapability indicates that the server supports body text.
BodyHyperlinksCapability indicates that the server supports hyperlinks in the notifications.
BodyImagesCapability indicates that the server supports images in the notifications.
BodyMarkupCapability indicates that the server supports markup in the body text.
CloseReasonClosed indicates that a notification message was closed with an API call.
CloseReasonDismissed indicates that a notification message was dismissed by the user.
CloseReasonExpired indicates that a notification message has expired.
CloseReasonUndefined indicates that no other well-known reason applies.
CriticalUrgency indicates that a notification message is above normal priority.
DeviceAddedCategory indicates that a device was added to the system.
DeviceCategory is a generic notification category related to hardware devices.
DeviceErrorCategory indicates that a device error occurred.
DeviceRemovedCategory indicates that a device was removed from the system.
EmailArrivedCategory indicates that an e-mail has arrived.
EmailBouncedCategory indicates that an e-mail message has bounced.
EmailCategory is a generic notification category related to electronic mail.
IconMultiCapability indicates that the server will render an animation of all the frames in a given image array.
IconStaticCapability indicates that the server supports display of exactly one frame of any given image array.
InstantMessageCategory is a generic notification category related to instant messages.
InstantMessageErrorCategory indicates that an instant message error occurred.
InstantMessageReceivedCategory indicates that an instant mesage has been received.
LowUrgency indicates that a notification message is below normal priority.
NetworkCategory is a generic notification category related to network.
NetworkConnectedCategory indicates that a network connection has been established.
NetworkDisconnectedCategory indicates that a network connection has been lost.
NetworkErrorCategory indicates that a network error occurred.
NormalUrgency indicates that a notification message has the regular priority.
PersistenceCapability indicates that the server supports persistence of notifications.
PresenceCategory is a generic notification category related to on-line presence.
PresenceOfflineCategory indicates that a contact disconnected from the network.
PresenceOnlineCategory indicates that a contact connected to the network.
ServerSelectedExpireTimeout requests the server to pick an expiration timeout appropriate for the message type.
SoundCapability indicates that the server supports sounds on notifications.
TransferCategory is a generic notification category for file transfers or downloads.
TransferCompleteCategory indicates that a file transfer has completed.
TransferErrorCategory indicates that a file transfer error occurred.

# Structs

Action describes a single notification action.
Hint describes supplementeary information that may be used by the server.
Message describes a single notification message.
Server holds a connection to a notification server interactions.

# Interfaces

Observer is an interface for observing interactions with notification messages.

# Type aliases

Category is a string indicating the category of a notification message.
CloseReason indicates why a notification message was closed.
ID is the opaque identifier of a notification assigned by the server.
ServerCapability describes a single capability of the notification server.
Urgency describes the importance of a notification message.