Documentation ¶
Overview ¶
Package gh provides GitHub API helpers used by many FerretDB repos.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRESTClient ¶
NewRESTClient returns GitHub REST API client for the given token (that may be empty) and debug logging function (that may be nil).
func NewTransport ¶
func NewTransport(source http.RoundTripper, debugf Printf) http.RoundTripper
NewTransport returns a new http.RoundTripper that wraps the source with debug logging. Both should be set.
func NoopPrintf ¶
NoopPrintf is a Printf function that does nothing.
Types ¶
Click to show internal directories.
Click to hide internal directories.