fetcher

package
v0.0.0-...-6993647 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FetcherAivenListServicesErrorsTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "fetcher_aiven_service_list_errors_total",
		Help: "Counter of total number of Aiven list services API failures",
	})

	FetcherFetchesTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "fetcher_fetches_total",
		Help: "Counter of total number of fetcher calls",
	})
)

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Services() []aiven.Service

	Start()
	Stop()

	SetInterval(time.Duration)
}

func NewFetcher

func NewFetcher(
	aivenProject string,
	aivenAPIToken string,

	logger lager.Logger,
) (Fetcher, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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