un

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 8 Imported by: 0

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

func (a *Adapter) NotifyMessage(title, message string) error

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

func (a *Adapter) SupportsClickActions() bool

SupportsClickActions always returns true — click-to-open is handled natively.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL