github

package
v1.30.8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

README

GitHub

Rate limiting

The Search API has a custom rate limit. For requests using Basic Authentication, OAuth, or client ID and secret, you can make up to 30 requests per minute. For unauthenticated requests, the rate limit allows you to make up to 10 requests per minute.

https://docs.github.com/en/rest/reference/search

Documentation

Index

Constants

View Source
const HtmlOrigin = "https://github.com"
View Source
const Origin = "https://api.github.com"

Variables

View Source
var Verbose bool

Functions

This section is empty.

Types

type Exchange added in v1.30.7

type Exchange struct {
	Access_Token string
	Error        string
}

func (Exchange) RepoSearch added in v1.30.8

func (x Exchange) RepoSearch(query, page string) (*RepoSearch, error)

type OAuth added in v1.30.7

type OAuth struct {
	Device_Code      string
	User_Code        string
	Verification_URI string
}

func NewOAuth added in v1.30.7

func NewOAuth() (*OAuth, error)

func (OAuth) Exchange added in v1.30.7

func (o OAuth) Exchange() (*Exchange, error)

type RepoSearch

type RepoSearch struct {
	Items []struct {
		HTML_URL         string
		Language         string
		Stargazers_Count int
	}
}

Jump to

Keyboard shortcuts

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