Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents the application level database.
func (*DB) EventsByActor ¶
EventsByActor returns a list of events from the database for a single actor.
func (*DB) SaveEvents ¶
SaveEvents stores events in the database.
type Event ¶
type Event struct {
ID string `json:"id"`
Type string `json:"type"`
Timestamp time.Time `json:"timestamp"`
Username string `json:"username"`
Actor string `json:"actor"`
Repository string `json:"repository"`
}
Event returns a genericized event.
type GitHubFetcher ¶
GitHubFetcher periodically fetches new events for a user.
func NewGitHubFetcher ¶
func NewGitHubFetcher(client *github.Client, db *DB, username string) *GitHubFetcher
NewGitHubFetcher returns a new GitHubFetcher for a user.
func (*GitHubFetcher) Run ¶
func (f *GitHubFetcher) Run(closing chan struct{})
Click to show internal directories.
Click to hide internal directories.