Versions in this module Expand all Collapse all v0 v0.2.1 Mar 7, 2019 Changes in this version + const CONST_ORGS + const CONST_REPO + const CONST_REPOS + const CONST_USER + var SEARCH_NUM = 25 + func BuildQuery(query string) (string, error) + func GenerateSearchCodeTask() (map[int][]models.Rule, error) + func GetGithubUserInfo(client *Client, ownerName *string) *github.User + func InitGithubClients() (map[string]*Client, error) + func InsertAllRepos() + func PassFilters(codeResult *models.CodeResult, fullName string) bool + func RunSearchTask(mapRules map[int][]models.Rule, err error) + func SaveResult(results []*github.CodeSearchResult, err error, keyword *string) + func ScheduleTasks(duration time.Duration) + func Search(rules []models.Rule) + type Client struct + Client *github.Client + Token string + var GithubClient *Client + var GithubClients map[string]*Client + func GetGithubClient() (*Client, string, error) + func NewGitClient(GithubClient *github.Client, token string) *Client + func (c *Client) GetOrgsMembers(org string) ([]*github.User, *github.Response, error) + func (c *Client) GetOrgsRepos(org string) ([]*github.Repository, *github.Response, error) + func (c *Client) GetStrUsersRepos(users []string) map[string][]*github.Repository + func (c *Client) GetUserInfo(username string) (*github.User, *github.Response, error) + func (c *Client) GetUserOrgs(username string) ([]*github.Organization, *github.Response, error) + func (c *Client) GetUserRepos(username string) ([]*github.Repository, *github.Response, error) + func (c *Client) GetUsersRepos(users []*github.User) map[string][]*github.Repository + func (c *Client) SearchCode(keyword string) ([]*github.CodeSearchResult, error)