package
Version:
v0.0.1-alpha
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func FetchOrgCount(ctx context.Context, client *github.Client, owner, repo string, Token string) (int, error)
-
func Run(ctx context.Context, db *sql.DB, owner string, repo string, config Config, ...) error
-
type Config
-
type GitHubStats
-
type UpdateOptions
type Config struct {
Database string `json:"database"`
User string `json:"user"`
Password string `json:"password"`
Host string `json:"host"`
Port string `json:"port"`
GitHubToken string `json:"githubToken"`
}
type GitHubStats struct {
StarCount *int
ForkCount *int
CreatedSince *time.Time
UpdatedSince *time.Time
ContributorCount *int
CommitFrequency *int
OrgCount *int
}
type UpdateOptions struct {
UpdateStarCount bool
UpdateForkCount bool
UpdateCreatedSince bool
UpdateUpdatedSince bool
UpdateContributorCount bool
UpdateCommitFrequency bool
UpdateOrgCount bool
ForceUpdate bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.