fetchers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetcherTransport

type FetcherTransport struct {
	GorouterConf  config.GorouterConfig
	WrapTransport http.RoundTripper
}

func NewFetcherTransport

func NewFetcherTransport(gorouterConf config.GorouterConfig, transport http.RoundTripper) *FetcherTransport

func (FetcherTransport) RoundTrip

func (t FetcherTransport) RoundTrip(req *http.Request) (*http.Response, error)

type MetricsFetcher

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

func NewMetricsFetcher

func NewMetricsFetcher(scraper *scrapers.Scraper, routesFetcher *RoutesFetcher) *MetricsFetcher

func (MetricsFetcher) Metric

func (f MetricsFetcher) Metric(route models.Route) (map[string]*dto.MetricFamily, error)

func (MetricsFetcher) Metrics

func (f MetricsFetcher) Metrics(appIdOrPathOrName string) (map[string]*dto.MetricFamily, error)

type RoutesFetcher

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

func NewRoutesFetcher

func NewRoutesFetcher(confGorouters []config.GorouterConfig) *RoutesFetcher

func (RoutesFetcher) Routes

func (f RoutesFetcher) Routes() models.Routes

func (RoutesFetcher) Run

func (f RoutesFetcher) Run()

Jump to

Keyboard shortcuts

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