Documentation ¶
Overview ¶
Package github provides a barista module to show github notifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents a GitHub barista module that displays notification counts.
func New ¶
New creates a GitHub module using the given clientID and secret.
type Notifications ¶
Notifications represents the notifications grouped by reasons. The key is the reason ("comment", "mention"), and the value is the number of notifications for that reason. See https://developer.github.com/v3/activity/notifications/#notification-reasons for a list of reasons.
func (Notifications) Total ¶
func (n Notifications) Total() int
Total returns the total number of unread notifications across all categories.
Click to show internal directories.
Click to hide internal directories.