Documentation ¶
Overview ¶
Package client contains an implementation of a HTTP client aware of all the Github rules like rate limiting or authenticating
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient LastResponse *http.Response Log }
Client is a top-level HTTPClient that remembers the last response and can log information out during the process
func New ¶
func New(httpClient HTTPClient, opts Options) Client
New creates a new instance of Client chaining all the clients together given Options
type Credentials ¶
Credentials struct contains user's name and access token to access the Github API
type HTTPClient ¶
HTTPClient is in interface for a HTTP client which "transforms" a http.Request into http.Response (like http.Client)
Click to show internal directories.
Click to hide internal directories.