notification

package
v2.256.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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