metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(provider metrics.Provider, opts ...Option) middleware.Middleware

Client returns a client metrics middleware.

func Server

func Server(provider metrics.Provider, opts ...Option) middleware.Middleware

Server returns a server metrics middleware.

Types

type Option

type Option func(*options)

Option is a function that configures the middleware.

func WithLogger

func WithLogger(logger xlog.Logger) Option

WithLogger returns a new Option that sets the logger.

Jump to

Keyboard shortcuts

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