middleware

package
v1.1.26 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logging

func Logging(logger log.Logger) endpoint.Middleware

Types

type MetricsMiddleware

type MetricsMiddleware interface {
	Measure() kitendpoint.Middleware
}

MetricsMiddleware implements a metrics middleware over an endpoint.

func NewMetricsMiddleware

func NewMetricsMiddleware(metricsClient metrics.Client) MetricsMiddleware

NewMetricsMiddleware creates a new metrics middleware pushing the metrics through the given metrics client.

Jump to

Keyboard shortcuts

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