Documentation
¶
Index ¶
- type Database
- func (conn *Database) HasRepo(repoid int64) (bool, error)
- func (conn *Database) HasUser(userid int64) (bool, error)
- func (conn *Database) InsertOrganizationMembers(orgid int64, orgname string, members []*github.User, statuscode int, ...) error
- func (conn *Database) InsertRepo(statuscode *int, fetchtime *time.Time, repo *github.Repository, upsert bool) error
- func (conn *Database) InsertRepoStatus(repoid int64, reponame string, statuscode int, fetchtime time.Time, ...) error
- func (conn *Database) InsertUser(statuscode *int, fetchtime *time.Time, user *github.User, upsert bool) error
- func (conn *Database) InsertUserStatus(id int64, login string, statuscode int, fetchtime time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database connection to the github postgres database
func (*Database) InsertOrganizationMembers ¶
func (conn *Database) InsertOrganizationMembers(orgid int64, orgname string, members []*github.User, statuscode int, fetchtime time.Time, upsert bool) error
InsertOrganizationMembers inserts or updates the list of public organization members in the database
func (*Database) InsertRepo ¶
func (conn *Database) InsertRepo(statuscode *int, fetchtime *time.Time, repo *github.Repository, upsert bool) error
InsertRepo inserts a github.Repository object into the database
func (*Database) InsertRepoStatus ¶
func (conn *Database) InsertRepoStatus(repoid int64, reponame string, statuscode int, fetchtime time.Time, upsert bool) error
InsertRepoStatus updates the statuscode/fetchtime associated with a repo in the case that it can't be fetched
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gha-download-files
command
|
|
|
gha-location-scraper
command
|
|
|
gha-organization-scraper
command
|
|
|
gha-parse-email
command
|
|
|
gha-parse-githubarchive
command
|
|
|
gha-scraper
command
|
|
|
gha-user-scraper
command
|
|
Click to show internal directories.
Click to hide internal directories.