Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesktopManager

type DesktopManager struct {
	// contains filtered or unexported fields
}

func (*DesktopManager) Notify

func (m *DesktopManager) Notify(notif *Notification) error

func (*DesktopManager) Schedule

func (m *DesktopManager) Schedule(notif *Notification, interval time.Duration) error

type LoggerManager

type LoggerManager struct {
	// contains filtered or unexported fields
}

func (*LoggerManager) Notify

func (m *LoggerManager) Notify(notif *Notification) error

func (*LoggerManager) Schedule

func (m *LoggerManager) Schedule(notif *Notification, interval time.Duration) error

type Manager

type Manager interface {
	Notify(*Notification) error
	Schedule(*Notification, time.Duration) error
}

func NewDesktopManager

func NewDesktopManager(logger *zap.Logger, appicon string) Manager

func NewLoggerManager

func NewLoggerManager(logger *zap.Logger) Manager

func NewNoopManager

func NewNoopManager() Manager

type NoopManager

type NoopManager struct{}

func (*NoopManager) Notify

func (nm *NoopManager) Notify(*Notification) error

func (*NoopManager) Schedule

func (nm *NoopManager) Schedule(*Notification, time.Duration) error

type Notification

type Notification struct {
	Title string
	Body  string
}