Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefualtClientTag is used when the tag is "".
DefualtClientTag = "defualt"
)
Variables ¶
View Source
var ( // ErrInvalidToken occurs when the token object is nil or token is "". ErrInvalidToken = errors.New("invalid token") )
Functions ¶
func IsTokenValid ¶
IsTokenValid returns ErrInvalidToken if token is invalid.
Types ¶
type Client ¶
Client contains a available GitHub Client.
func (*Client) List ¶
func (c *Client) List(owner, repo, path string) ([]*github.RepositoryContent, *github.Response, error)
List returns the contents of a file or directory in a repository.
https://developer.github.com/v3/repos/contents/#get-contents
func (*Client) Search ¶
func (c *Client) Search(language string, pushed time.Duration, min, max, page int) (*github.RepositoriesSearchResult, *github.Response, error)
Search searches repositories via various criteria.
https://developer.github.com/v3/search/#search-repositories https://help.github.com/articles/searching-repositories
Click to show internal directories.
Click to hide internal directories.