Documentation
¶
Overview ¶
Package gmail provides a gmail barista module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
Info represents the unread and total thread counts for labels. The keys are the names (not IDs) of the labels, and the values are the thread counts (Threads is total threads, while Unread is just unread threads).
func (Info) TotalThreads ¶
TotalThreads is the total number of threads across all configured labels.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents a Gmail barista module.
func New ¶
New creates a gmail module from the given oauth config, that fetches unread and total thread counts for the given set of labels.
func (*Module) Output ¶
Output sets the output format for the module.
func (*Module) RefreshInterval ¶
RefreshInterval sets the interval between consecutive checks for new mail.
Source Files
¶
- gmail.go
Click to show internal directories.
Click to hide internal directories.