metric

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncNewArticlesCounter

func IncNewArticlesCounter(article model.Article)

IncNewArticlesCounter increments the counter of new articles

func StartCollectors

func StartCollectors(_db db.DB)

StartCollectors starts metrics collectors

func StopCollectors

func StopCollectors()

StopCollectors stop metrics collectors

Types

type Collector

type Collector interface {
	Collect() error
}

Collector is a metric collector

type Collectors

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

Collectors is a go routine in charge of the metrics collector.

Jump to

Keyboard shortcuts

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