Documentation ¶
Overview ¶
Package github is a mini-library for querying the GitHub v3 API that takes care of authentication (with tokens only) and pagination.
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "https://api.github.com"
Variables ¶
View Source
var VERBOSITY = 0
Set to values > 0 to control verbosity, for debugging.
Functions ¶
Types ¶
type Client ¶
type Client struct { Token string // Github API token, used when set. BaseURL string // Github API URL, defaults to DefaultBaseURL if unset. }
Client collects a few options that can be set when contacting the GitHub API, such as authorization tokens. Methods called on Client will supply these options when calling the API.
Click to show internal directories.
Click to hide internal directories.