metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() middleware.MiddlewareBuilder

func Server

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

Types

type Config

type Config struct {
	Proto string `json:"proto" yaml:"proto"`
}

{"counter":"aaaa","observer":"bbbb"}

type Option

type Option func(*options)

Option is metrics option.

func WithCounter

func WithCounter(c metrics.Counter) Option

WithCounter with requests counter.

func WithGauge

func WithGauge(c metrics.Gauge) Option

WithGauge

func WithObserver

func WithObserver(c metrics.Observer) Option

WithObserver

Jump to

Keyboard shortcuts

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