Documentation
¶
Index ¶
Constants ¶
View Source
const ( Host = "https://github.com" TrendingRepoPath = "https://github.com/trending" TrendingDevelopersPath = "https://github.com/trending/developers" )
View Source
const ( TaskTypeLanguage = "language" TaskTypeRepo = "repo" TaskTypeDeveloper = "developer" )
View Source
const ( ResultTypeLanguage = "language" ResultTypeRepo = "repo" ResultTypeDeveloper = "developer" )
View Source
const ( SinceToDay = "daily" SinceWeek = "weekly" SinceMonth = "monthly" )
View Source
const (
AllLanguage = "All Language"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
func NewCrawler ¶
func (*Crawler) AllLanguages ¶
func (*Crawler) Result ¶
func (c *Crawler) Result() <-chan WorkResult
type ResultType ¶
type ResultType string
type TrendingDeveloper ¶
type TrendingDeveloper struct {
Ranking int `json:"ranking"`
Avatar string `json:"avatar"`
Login string `json:"login"`
NickName string `json:"nickName"`
RepoName string `json:"repoName"`
RepoDescription string `json:"repoDescription"`
}
func (*TrendingDeveloper) String ¶
func (developer *TrendingDeveloper) String() string
type TrendingDeveloperResult ¶
type TrendingDeveloperResult struct {
Language string `json:"language"`
Since string `json:"since"`
Developers []*TrendingDeveloper `json:"developers"`
}
type TrendingRepo ¶
type TrendingRepo struct {
Ranking int `json:"ranking"`
FullName string `json:"fullName"`
Language string `json:"language"`
Description string `json:"repoDescription"`
Stars string `json:"stars"`
Forkers string `json:"forkers"`
Gains string `json:"gains"`
}
func (*TrendingRepo) String ¶
func (repo *TrendingRepo) String() string
type TrendingRepoResult ¶
type TrendingRepoResult struct {
Language string `json:"language"`
Since string `json:"since"`
Repos []*TrendingRepo `json:"repos"`
}
type WorkResult ¶
type WorkResult struct {
ResultType ResultType
Since string
Language string
Result interface{}
}
Click to show internal directories.
Click to hide internal directories.