middleware

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package middleware is a prometheus middleware for HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP() func(http.Handler) http.Handler

NewHTTP to create new prometheus http middleware.

func NewStreamGRPC

func NewStreamGRPC(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

NewStreamGRPC to create new grpc stream prometheus middleware. Todo: implement prometheus.

func NewUnaryGRPC

func NewUnaryGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

NewUnaryGRPC to create new grpc unary prometheus middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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