scraper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDoer

type HTTPDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPDoer executes http requests. It is implemented by *http.Client.

type MetricFamiliesByName

type MetricFamiliesByName map[string]dto.MetricFamily

func Get

func Get(client HTTPDoer, url string) (MetricFamiliesByName, error)

Get scrapes the given URL and decodes the retrieved payload.

Jump to

Keyboard shortcuts

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