Documentation ¶
Index ¶
- Constants
- func SetDefaultLogger(logger *zap.Logger)
- func Workflow(client *Client, reporter *Reporter, awesomeID github.RepoID, ...) (awesomeRepos map[string][]*AwesomeRepo, err error)
- type AwesomeRepo
- type Client
- type Parser
- type RateLimit
- type Repo
- type Reporter
- func (r *Reporter) ConReqNum(num int)
- func (r *Reporter) Done()
- func (r *Reporter) GetConReqNum() int
- func (r *Reporter) GetFinishedRepoNum() int
- func (r *Reporter) GetInvalidRepo() []github.RepoID
- func (r *Reporter) GetTotalRepoNum() int
- func (r *Reporter) GetWaitingRepo() int
- func (r *Reporter) InvalidRepo(id github.RepoID)
- func (r *Reporter) RepoWaiting()
- func (r *Reporter) TotalRepoNum(num int)
- type User
Constants ¶
View Source
const ( ErrScope = "awg" ErrCodeContent = 10 ErrCodeRatelimit = 11 ErrCodeNetwork = 12 )
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogger ¶
Types ¶
type AwesomeRepo ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Fill ¶
func (c *Client) Fill(ctx context.Context, repo *AwesomeRepo) error
Fill struct repo with more info.
func (*Client) GetHTMLReadme ¶
Get Readme html page.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) FetchRepos ¶
func (p *Parser) FetchRepos(idxReposMap map[string][]*AwesomeRepo) error
Fetch repositories from remote.
type Repo ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func (*Reporter) GetConReqNum ¶
func (*Reporter) GetFinishedRepoNum ¶
func (*Reporter) GetInvalidRepo ¶
func (*Reporter) GetTotalRepoNum ¶
func (*Reporter) GetWaitingRepo ¶
func (*Reporter) InvalidRepo ¶
func (*Reporter) RepoWaiting ¶
func (r *Reporter) RepoWaiting()
func (*Reporter) TotalRepoNum ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.