middleware

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatencyMiddleware

func LatencyMiddleware(duration metrics.Histogram, methodName string) endpoint.Middleware

LatencyMiddleware is an endpoint middleware which observes the request latency in a histogram

func Logging

func Logging(logger log.Logger, endpointName string) endpoint.Middleware

func Prometheus

func Prometheus(methodName string) endpoint.Middleware

Prometheus adds basic RED metrics on all endpoints. The transport layer (gRPC) should also have metrics attached and will then take care of monitoring grpc endpoints including their status.

func RequestFrequency

func RequestFrequency(frequency metrics.Counter, methodName string) endpoint.Middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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