metrics

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initial

func Initial()

func OnMeasure

func OnMeasure(metric Metric)

OnMeasure push Metric to gorotine pool then handled automatic.

func StartMetricManager

func StartMetricManager()

func StopMetricManager

func StopMetricManager()

Types

type BaseMetric

type BaseMetric = event.UnimplementedEvent

type Metric

type Metric = event.Event

type MetricManager

type MetricManager interface {
	Start()
	Stop()
	OnMeasure(metric Metric)
}

func NewMetricManager

func NewMetricManager(fn pool.RespFn[Metric], opts ...pool.Option) MetricManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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