Replace go-grpc-prometheus with go-grpc-middleware/providers/prometheus
Fixes #9806 go-grpc-prometheus is deprecated. The new location it was moved to also introduced an entirely new api, but afaict this matches what we have at the moment. Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
23
vendor/github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus/constants.go
generated
vendored
Normal file
23
vendor/github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus/constants.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) The go-grpc-middleware Authors.
|
||||
// Licensed under the Apache License 2.0.
|
||||
|
||||
package prometheus
|
||||
|
||||
type grpcType string
|
||||
|
||||
// grpcType describes all types of grpc connection.
|
||||
const (
|
||||
Unary grpcType = "unary"
|
||||
ClientStream grpcType = "client_stream"
|
||||
ServerStream grpcType = "server_stream"
|
||||
BidiStream grpcType = "bidi_stream"
|
||||
)
|
||||
|
||||
// Kind describes whether interceptor is a client or server type.
|
||||
type Kind string
|
||||
|
||||
// Enum for Client and Server Kind.
|
||||
const (
|
||||
KindClient Kind = "client"
|
||||
KindServer Kind = "server"
|
||||
)
|
||||
Reference in New Issue
Block a user