http

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(tracer opentracing.Tracer, svcName string, svc fleet.Service) http.Handler

func MetricsMiddleware

func MetricsMiddleware(auth mainflux.AuthServiceClient, svc fleet.Service, counter metrics.Counter, latency metrics.Histogram) fleet.Service

MetricsMiddleware instruments core service by tracking request count and latency.

func NewLoggingMiddleware

func NewLoggingMiddleware(svc fleet.Service, logger *zap.Logger) fleet.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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