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

25 lines
400 B
Go

//go:build windows
package notify
import (
"time"
"github.com/go-toast/toast"
)
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
}