application

package
v0.0.0-...-94edfc7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("application", fx.Provide(NewApplication))

Functions

This section is empty.

Types

type Application

type Application struct {
	Metrics    *metrics.Metrics
	Scraper    *scrape.Scraper
	Log        *zap.Logger
	Prometheus *prometheus.Prometheus
}

func NewApplication

func NewApplication(p NewApplicationParams, lc fx.Lifecycle) *Application

func (*Application) DescribeMetrics

func (a *Application) DescribeMetrics()

func (*Application) PipeMetrics

func (a *Application) PipeMetrics(ch chan *scrape.ScrapeResult)

func (*Application) StartScraping

func (a *Application) StartScraping(ch chan *scrape.ScrapeResult)

type NewApplicationParams

type NewApplicationParams struct {
	fx.In

	Metrics    *metrics.Metrics
	Scraper    *scrape.Scraper
	Log        *zap.Logger
	Prometheus *prometheus.Prometheus
}

Jump to

Keyboard shortcuts

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