scrapers

package
v1.51.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderGzip

type ReaderGzip struct {
	// contains filtered or unexported fields
}

func NewReaderGzip

func NewReaderGzip(main io.ReadCloser) (*ReaderGzip, error)

func (ReaderGzip) Close

func (r ReaderGzip) Close() error

func (ReaderGzip) Read

func (r ReaderGzip) Read(p []byte) (n int, err error)

type Scraper

type Scraper struct {
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(backendFactory *clients.BackendFactory) *Scraper

func (*Scraper) GetOutboundIP

func (s *Scraper) GetOutboundIP() string

func (Scraper) Scrape

func (s Scraper) Scrape(route *models.Route, metricPathDefault, metricSchemeDefault string, headers http.Header) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL