Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Factory = &NotifierFactory{ notifiers: make(map[string]Notifier), }
Functions ¶
This section is empty.
Types ¶
type ConsoleNotifier ¶
type ConsoleNotifier struct { }
func (*ConsoleNotifier) BeforeNotify ¶
func (n *ConsoleNotifier) BeforeNotify()
func (*ConsoleNotifier) Info ¶
func (n *ConsoleNotifier) Info() NotifierInfo
func (*ConsoleNotifier) Notify ¶
func (n *ConsoleNotifier) Notify(title string, message string)
func (*ConsoleNotifier) NotifyItem ¶
func (n *ConsoleNotifier) NotifyItem(item todo.ToDoItem)
type DesktopNotifier ¶
type DesktopNotifier struct { }
func (*DesktopNotifier) BeforeNotify ¶
func (n *DesktopNotifier) BeforeNotify()
func (*DesktopNotifier) Info ¶
func (n *DesktopNotifier) Info() NotifierInfo
func (*DesktopNotifier) Notify ¶
func (n *DesktopNotifier) Notify(title string, message string)
func (*DesktopNotifier) NotifyItem ¶
func (n *DesktopNotifier) NotifyItem(item todo.ToDoItem)
type Notifier ¶
type Notifier interface { Notify(title string, message string) NotifyItem(item todo.ToDoItem) Info() NotifierInfo BeforeNotify() }
type NotifierFactory ¶
type NotifierFactory struct {
// contains filtered or unexported fields
}
func (*NotifierFactory) Notifiers ¶
func (n *NotifierFactory) Notifiers() []Notifier
func (*NotifierFactory) Register ¶
func (n *NotifierFactory) Register(name string, notifier Notifier)
Click to show internal directories.
Click to hide internal directories.