scrapers

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 10 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, db *gorm.DB) *Scraper

func (*Scraper) GetOutboundIP added in v0.7.0

func (s *Scraper) GetOutboundIP() string

func (Scraper) Scrape

func (s Scraper) Scrape(route *models.Route, metricPathDefault 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