Documentation ¶
Overview ¶
Package scraper provides support for scraping OpenAPI versions from services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationTransport ¶
func DurationTransport(next http.RoundTripper) http.RoundTripper
DurationTransport returns a http.RoundTripper for tracking http calls made from the Scraper.
Types ¶
type Option ¶
Option defines an option that may be specified when creating a new Scraper.
func Clock ¶
Clock is a Scraper constructor Option that allows providing an alternative clock used to determine the scrape timestamps used to record changes in service spec versions.
func HTTPClient ¶
HTTPClient is a Scraper constructor Option that allows providing an *http.Client instance. This may be used to configure the transport and timeouts on the HTTP client.
Click to show internal directories.
Click to hide internal directories.