github

package
v0.0.0-...-9c02efb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubCrawler

type GitHubCrawler struct {
	API_KEY string
	// contains filtered or unexported fields
}

GitHubCrawler Contains API_KEY and Client for API calls

func NewCrawler

func NewCrawler(apiKey string) *GitHubCrawler

NewCrawler Constructs a new GitHubCrawler given an API_KEY

func (*GitHubCrawler) GetFollowers

func (c *GitHubCrawler) GetFollowers(user string) (users []entities.User, err error)

GetFollowers Fetches a list of Users following given user

func (*GitHubCrawler) GetOrgMembers

func (c *GitHubCrawler) GetOrgMembers(org string) (users []entities.User, err error)

GetOrgMembers Fetches a list of Users belonging to a given Organization string

func (*GitHubCrawler) GetRepoContributors

func (c *GitHubCrawler) GetRepoContributors(user, repo string) (users []entities.User, err error)

GetRepoContributors Fetches a list of Users contributing to a given repository belonging to a given username

func (*GitHubCrawler) GetUserRepositories

func (c *GitHubCrawler) GetUserRepositories(user string) (repos []entities.Repository, err error)

GetUserRepositories Fetches a List of Repositories from a given Username

func (*GitHubCrawler) SearchCode

func (c *GitHubCrawler) SearchCode(q string, resp chan entities.SearchResult)

SearchCode Searches for code String in all of GitHub and streams a channel of SearchResults

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL