cache: gitoa.ru/go-4devs/cache/mw/prometheus Index | Files

package prometheus

import "gitoa.ru/go-4devs/cache/mw/prometheus"

Index

Package Files

metrics.go

type Metrics Uses

type Metrics struct{}

Metrics prometeus.

func (Metrics) Err Uses

func (m Metrics) Err(label string, operation string)

Err increment base undefined error.

func (Metrics) Expired Uses

func (m Metrics) Expired(label string)

Expired increment error expired.

func (Metrics) Hit Uses

func (m Metrics) Hit(label string)

Hit increment hit cache.

func (Metrics) Miss Uses

func (m Metrics) Miss(label string)

Miss inc miss error cache.

func (Metrics) Observe Uses

func (m Metrics) Observe(label string, operation string, start time.Time)

Observe time from start.

Package prometheus imports 3 packages (graph). Updated 2020-10-25. Refresh now. Tools for package owners.