package
0.0.0-20240701220545-facf11a8c7d8
Repository: https://github.com/xvandish/zoekt.git
Documentation: pkg.go.dev

# Functions

MustGetClientMessageSizeFromEnv returns a slice of grpc.DialOptions that set the maximum message size for gRPC clients if the "SRC_GRPC_CLIENT_MAX_MESSAGE_SIZE" environment variable is set to a valid size value (ex: "40 MB").
MustGetServerMessageSizeFromEnv returns a slice of grpc.ServerOption that set the maximum message size for gRPC servers if the "SRC_GRPC_SERVER_MAX_MESSAGE_SIZE" environment variable is set to a valid size value (ex: "40 MB").
StreamClientInterceptor is a grpc.StreamClientInterceptor that records Prometheus metrics that observe both the sizes of the individual request messages and the cumulative request size of all the message sent by the client over the course of a single RPC call.
StreamServerInterceptor is a grpc.StreamServerInterceptor that records Prometheus metrics that observe both the sizes of the individual response messages and the cumulative response size of all the message sent back by the server over the course of a single RPC call.
UnaryClientInterceptor is a grpc.UnaryClientInterceptor that records Prometheus metrics that observe the size of the request message sent by client for a single RPC call.
UnaryServerInterceptor is a grpc.UnaryServerInterceptor that records Prometheus metrics that observe the size of the response message sent back by the server for a single RPC call.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author