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.
func (Info) TotalUnread ¶
TotalUnread is the total number of unread threads across all labels. (as set during construction).
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) RefreshInterval ¶
RefreshInterval sets the interval between consecutive checks for new mail.