Documentation
¶
Rendered for darwin/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements port.NotificationPort using UNUserNotificationCenter via cgo. It requires no external binaries and supports click-to-open on all macOS versions.
func NewAdapter ¶
func NewAdapter() *Adapter
NewAdapter creates and initialises the UNUserNotificationCenter adapter. Returns nil if the binary is not running inside a proper .app bundle, in which case the caller should fall back to another notification method.
func (*Adapter) NotifyMessage ¶
NotifyMessage sends a plain title+message notification.
func (*Adapter) NotifyPullRequests ¶
func (a *Adapter) NotifyPullRequests(notifications []*port.PRNotificationData) error
NotifyPullRequests sends one notification per PR.
func (*Adapter) SupportsClickActions ¶
SupportsClickActions always returns true — click-to-open is handled natively.
Click to show internal directories.
Click to hide internal directories.