Documentation
¶
Index ¶
- func DefaultPath() string
- type Notice
- type Service
- func (s *Service) Configure(persist bool, maxHist int)
- func (s *Service) Dismiss(id string)
- func (s *Service) DismissAll()
- func (s *Service) List() []Notice
- func (s *Service) Load()
- func (s *Service) MarkAllRead()
- func (s *Service) Post(title, body, icon, source string) Notice
- func (s *Service) Subscribe(fn func(Notice))
- func (s *Service) Unread() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notice ¶
type Notice struct {
ID string `json:"id"`
Title string `json:"title"`
Body string `json:"body"`
Icon string `json:"icon"`
Created time.Time `json:"created"`
Source string `json:"source"`
Read bool `json:"read"`
}
Notice is a system notification.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the desktop-wide notification bus.
func (*Service) Configure ¶
Configure enables/disables disk history and reloads when turning persist on.
func (*Service) DismissAll ¶
func (s *Service) DismissAll()
func (*Service) MarkAllRead ¶
func (s *Service) MarkAllRead()
Click to show internal directories.
Click to hide internal directories.