github

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: OSL-3.0 Imports: 6 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
}

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 Repos added in v1.30.9

type Repos struct {
	Items []struct {
		HTML_URL         string
		Language         string
		Stargazers_Count int
	}
}
type Search struct {
	url.Values
}

func NewSearch added in v1.30.9

func NewSearch(q string) Search

func (Search) Page added in v1.30.9

func (s Search) Page(value int)

default 1

func (Search) PerPage added in v1.30.9

func (s Search) PerPage(value int)

default 30, max 100

func (Search) Repos added in v1.30.9

func (s Search) Repos(x *Exchange) (*Repos, error)

Set "x" to "nil" for no authentication.

Jump to

Keyboard shortcuts

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