notifications: Index | Files

package githubapi

import ""

Package githubapi implements notifications.Service using GitHub API client.


Package Files


func NewService Uses

func NewService(clientNoCache *github.Client, client *github.Client) notifications.Service

NewService creates a GitHub-backed notifications.Service using given GitHub clients. At this time it infers the current user from the client (its authentication info), and cannot be used to serve multiple users.

Caching can't be used for Activity.ListNotifications until GitHub API fixes the odd behavior of returning 304 even when some notifications get marked as read. Otherwise read notifications remain forever (until a new notification comes in). That's why we need clientNoCache.

Package githubapi imports 10 packages (graph) and is imported by 1 packages. Updated 2017-07-21. Refresh now. Tools for package owners.