Documentation
¶
Index ¶
- type Document
- type FetchOptions
- type Fetcher
- func (fetcher Fetcher) Fetch(ctx context.Context, options FetchOptions) ([]Document, error)
- func (fetcher Fetcher) WithAPIBase(base string) Fetcher
- func (fetcher Fetcher) WithAuthorizationToken(token string) Fetcher
- func (fetcher Fetcher) WithTimeout(duration time.Duration) Fetcher
- func (fetcher Fetcher) WithUserAgent(agent string) Fetcher
- type RuleSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchOptions ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher(client httpClient) Fetcher
func (Fetcher) WithAPIBase ¶
func (Fetcher) WithAuthorizationToken ¶
WithAuthorizationToken configures the fetcher to authenticate GitHub API calls.
func (Fetcher) WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.