goldwarden-vaultwarden-bitw.../agent/notify/windows.go

25 lines
392 B
Go
Raw Normal View History

2024-02-04 00:49:42 +01:00
//go:build windows
package notify
import (
"time"
"gopkg.in/toast.v1"
)
func Notify(title string, body string, actionName string, timeout time.Duration, onclose func()) error {
notification := toast.Notification{
AppID: "Goldwarden",
Title: title,
Message: body,
Audio: toast.Silent,
}
return notification.Push()
}
func ListenForNotifications() error {
return nil
}