Documentation
¶
Index ¶
- func CalRepoScore(gitRepo *model.GitRepo, contributors []*model.GitContributor) float64
- func InitTest() error
- func LoadDataFromUrl(url string) ([]byte, error)
- func ThkRepo(repo string) (float64, []*model.GitContributor, error)
- type Contributor
- type GithubThk
- type RepoInfo
- type ThankTask
- type ThkContributor
- type ThkContributorRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalRepoScore ¶
func CalRepoScore(gitRepo *model.GitRepo, contributors []*model.GitContributor) float64
func LoadDataFromUrl ¶
Types ¶
type Contributor ¶
type GithubThk ¶
type GithubThk struct {
// contains filtered or unexported fields
}
func NewGithubThk ¶
func (*GithubThk) GetContributors ¶
func (g *GithubThk) GetContributors() []*model.GitContributor
func (*GithubThk) GetRepoInfo ¶
type ThankTask ¶
type ThankTask struct {
// contains filtered or unexported fields
}
func NewThankTask ¶
func NewThankTaskFromId ¶
func (*ThankTask) Run ¶
func (tt *ThankTask) Run() ([]*ThkContributor, error)
type ThkContributor ¶
type ThkContributor struct { Login string `json:"login"` Id int `json:"id"` Total float64 `json:"total"` Repos []ThkContributorRepo `json:"repos"` }
func ThanksReadOnly ¶
func ThanksReadOnly(repos []string) ([]*ThkContributor, error)
type ThkContributorRepo ¶
Click to show internal directories.
Click to hide internal directories.