Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
HTTPClient *http.Client
// BaseURL defaults to https://api.github.com; overridable for tests.
BaseURL string
}
Fetcher reads content from the GitHub Contents API.
func (*Fetcher) Fetch ¶
func (f *Fetcher) Fetch(ctx context.Context, req source.FetchRequest) (source.FetchResult, error)
Click to show internal directories.
Click to hide internal directories.