Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
func Send(appName, title, message string, nType NotificationType) error
Send 发送 Linux 系统通知(对外暴露的 Go API) 参数:
appName: 应用标识(如 "myapp") title: 通知标题 message: 通知内容 nType: 通知类型(Info/Error)
返回:错误信息(nil 表示成功)
Types ¶
type NotificationType ¶
type NotificationType int
NotificationType 通知类型(区分普通/错误通知)
const ( // NotificationInfo 普通信息通知 NotificationInfo NotificationType = 0 // NotificationError 错误警告通知 NotificationError NotificationType = 1 )
Click to show internal directories.
Click to hide internal directories.