Documentation ¶
Index ¶
- func FetchAllCommits(nameUser, nameRepository string, numPerPage int, apiKey string) (githubCommits []models.GithubCommit, err error)
- func FetchCommitsByDate(nameUser, nameRepository, apiKey string, timeInit time.Time, ...) (githubCommits []models.GithubCommit, err error)
- type Author
- type Data
- type GithubRepo
- type History
- type Node
- type Object
- type PageInfo
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAllCommits ¶
func FetchAllCommits(nameUser, nameRepository string, numPerPage int, apiKey string) (githubCommits []models.GithubCommit, err error)
FetchAllCommits returns all commits in repository @nameRepository of user @nameUser. @numPerPage is the number of commits fetched per request. For github this is limited to 100 atm.
func FetchCommitsByDate ¶
func FetchCommitsByDate(nameUser, nameRepository, apiKey string, timeInit time.Time, timeFinal time.Time) (githubCommits []models.GithubCommit, err error)
FetchCommitsByDate returns all commits in repository @nameRepository of user @nameUser in the time range given by @timeInit and @timeFinal including both borders because the graphQL query does so.
Types ¶
type Data ¶
type Data struct {
Repository Repository `json:"repository"`
}
type GithubRepo ¶
type GithubRepo struct {
Data Data `json:"data"`
}
type Repository ¶
Click to show internal directories.
Click to hide internal directories.