github

package
v1.30.7 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

For API requests using Basic Authentication or OAuth, you can make up to 5,000 requests per hour. For unauthenticated requests, the rate limit allows for up to 60 requests per hour.

https://docs.github.com/rest/overview/resources-in-the-rest-api

Documentation

Index

Constants

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 RepoSearch

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

func NewRepoSearch

func NewRepoSearch(query, page string) (*RepoSearch, error)

Jump to

Keyboard shortcuts

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