Documentation ¶
Index ¶
- Constants
- func AuthorizationInterceptor(verifier *authz.TokenVerifier, authConfig authz.Config) grpc.UnaryServerInterceptor
- func DefaultTracingServer() grpc.UnaryServerInterceptor
- func ErrorHandler() grpc.UnaryServerInterceptor
- func MetricsHandler(metricTypes []metrics.MetricType, ignoredMethodSuffixes ...string) grpc.UnaryServerInterceptor
- func NoCacheInterceptor() grpc.UnaryServerInterceptor
- func RegisterGrpcRequestCodeCounter(ctx context.Context, info *grpc.UnaryServerInfo, err error)
- func RegisterGrpcRequestCounter(ctx context.Context, info *grpc.UnaryServerInfo)
- func RegisterGrpcTotalRequestCounter(ctx context.Context)
- func RegisterMetrics(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (_ interface{}, err error)
- func SentryHandler() grpc.UnaryServerInterceptor
- func ServiceHandler() grpc.UnaryServerInterceptor
- func TracingServer(ignoredMethods ...GRPCMethod) grpc.UnaryServerInterceptor
- func TranslationHandler(defaultLanguage language.Tag) ...
- func ValidationHandler() grpc.UnaryServerInterceptor
- type GRPCMethod
- type Localizer
Constants ¶
View Source
const ( GrpcMethod = "grpc_method" ReturnCode = "return_code" GrpcRequestCounter = "grpc.server.request_counter" GrpcRequestCounterDescription = "Grpc request counter" TotalGrpcRequestCounter = "grpc.server.total_request_counter" TotalGrpcRequestCounterDescription = "Total grpc request counter" GrpcStatusCodeCounter = "grpc.server.grpc_status_code" GrpcStatusCodeCounterDescription = "Grpc status code counter" )
Variables ¶
This section is empty.
Functions ¶
func AuthorizationInterceptor ¶
func AuthorizationInterceptor(verifier *authz.TokenVerifier, authConfig authz.Config) grpc.UnaryServerInterceptor
func DefaultTracingServer ¶ added in v0.104.9
func DefaultTracingServer() grpc.UnaryServerInterceptor
func ErrorHandler ¶
func ErrorHandler() grpc.UnaryServerInterceptor
func MetricsHandler ¶ added in v0.107.0
func MetricsHandler(metricTypes []metrics.MetricType, ignoredMethodSuffixes ...string) grpc.UnaryServerInterceptor
func NoCacheInterceptor ¶ added in v1.23.4
func NoCacheInterceptor() grpc.UnaryServerInterceptor
func RegisterGrpcRequestCodeCounter ¶ added in v0.107.0
func RegisterGrpcRequestCodeCounter(ctx context.Context, info *grpc.UnaryServerInfo, err error)
func RegisterGrpcRequestCounter ¶ added in v0.107.0
func RegisterGrpcRequestCounter(ctx context.Context, info *grpc.UnaryServerInfo)
func RegisterGrpcTotalRequestCounter ¶ added in v0.107.0
func RegisterMetrics ¶ added in v0.107.0
func RegisterMetrics(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, metricTypes []metrics.MetricType, ignoredMethodSuffixes ...string) (_ interface{}, err error)
func SentryHandler ¶ added in v1.18.0
func SentryHandler() grpc.UnaryServerInterceptor
func ServiceHandler ¶ added in v0.119.0
func ServiceHandler() grpc.UnaryServerInterceptor
func TracingServer ¶ added in v0.104.9
func TracingServer(ignoredMethods ...GRPCMethod) grpc.UnaryServerInterceptor
func TranslationHandler ¶ added in v0.50.0
func TranslationHandler(defaultLanguage language.Tag) func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func ValidationHandler ¶ added in v0.81.0
func ValidationHandler() grpc.UnaryServerInterceptor
Types ¶
type GRPCMethod ¶
type GRPCMethod string
Click to show internal directories.
Click to hide internal directories.