Documentation
¶
Index ¶
- Constants
- type GitHubRepo
- func (r *GitHubRepo) AppendFollowers(c *github.Contributor, followers []*github.User)
- func (r *GitHubRepo) AppendFollowings(c *github.Contributor, followings []*github.User)
- func (r *GitHubRepo) Save(filePath string)
- func (r *GitHubRepo) SetContributors(cs []*github.Contributor)
- func (r *GitHubRepo) SetMembers(cs []*github.User)
Constants ¶
View Source
const RepoDataFileName string = "gitdog_data.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubRepo ¶
type GitHubRepo struct {
Owner string
Repository string
// All contributors, Login as primary key
Contributors map[string]*github.Contributor
// Login -> follower users
Followers map[string][]string
// Login -> following users
Followings map[string][]string
// Members, Login -> user info
Members map[string]*github.User
}
GitHubRepo Contains all the data we need to analysis a given repository.
func BuildGitHubRepo ¶
func BuildGitHubRepo(client *client.GitHubClient) *GitHubRepo
func Load ¶
func Load(filePath string) *GitHubRepo
func NewRepo ¶
func NewRepo(owner string, repository string) *GitHubRepo
func (*GitHubRepo) AppendFollowers ¶
func (r *GitHubRepo) AppendFollowers(c *github.Contributor, followers []*github.User)
func (*GitHubRepo) AppendFollowings ¶
func (r *GitHubRepo) AppendFollowings(c *github.Contributor, followings []*github.User)
func (*GitHubRepo) Save ¶
func (r *GitHubRepo) Save(filePath string)
func (*GitHubRepo) SetContributors ¶
func (r *GitHubRepo) SetContributors(cs []*github.Contributor)
func (*GitHubRepo) SetMembers ¶
func (r *GitHubRepo) SetMembers(cs []*github.User)
Click to show internal directories.
Click to hide internal directories.