metrics

package
v0.0.0-...-bb01aa7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NowFunc = time.Now
View Source
var SinceFunc = time.Since

Functions

func Client

func Client(opts ...Option) middleware.Middleware

Client is middleware client-side metrics.

func Server

func Server(opts ...Option) middleware.Middleware

Server is middleware server-side metrics.

Types

type Option

type Option func(*options)

Option is metrics option.

func WithRequests

func WithRequests(c metrics.Counter) Option

WithRequests with requests counter.

func WithSeconds

func WithSeconds(c metrics.Observer) Option

WithSeconds with seconds histogram.

Jump to

Keyboard shortcuts

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