Documentation ¶
Overview ¶
Package middleware is a prometheus middleware for HTTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.