metric

package
v0.0.0-...-04d676d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

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

func New

func New(appID string) *Metric

func (*Metric) ErrorCounter

func (m *Metric) ErrorCounter(label string)

func (*Metric) RouterHandlerHTTP

func (m *Metric) RouterHandlerHTTP() http.HandlerFunc

func (*Metric) TimeTracker

func (m *Metric) TimeTracker(next http.HandlerFunc, label string, l log.Logger) http.HandlerFunc

func (*Metric) Timing

func (m *Metric) Timing(start time.Time, label string)

Jump to

Keyboard shortcuts

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