metrics

package
v0.0.0-...-46fe095 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Metrics(ctx echo.Context) error
}

func NewMetricEnpoint

func NewMetricEnpoint(metric MetricManager) Endpoint

type Metric

type Metric struct {
	Name string
	*expvar.Map
}

func (*Metric) AddFloat

func (m *Metric) AddFloat(name string) *expvar.Float

func (*Metric) AddInt

func (m *Metric) AddInt(name string) *expvar.Int

type MetricManager

type MetricManager interface {
	FormatMetrics() map[string]interface{}
	RegisterMetric(name string) *Metric
}

func NewMetricManager

func NewMetricManager() MetricManager

Jump to

Keyboard shortcuts

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